Ejemplo n.º 1
0
 private KeyManager getKeyManager()
     throws TrustedComputingException, ClassCastException, ClassNotFoundException,
         InstantiationException, IllegalAccessException {
   TPMContext context = getContext();
   KeyManager km = context.getKeyManager();
   return km;
 }
Ejemplo n.º 2
0
 public TPMContext getContext()
     throws ClassCastException, ClassNotFoundException, InstantiationException,
         IllegalAccessException, TrustedComputingException {
   if (context == null) {
     context = TPMContext.getInstance();
     context.connect(null);
   }
   return context;
 }
Ejemplo n.º 3
0
 private void closeContext()
     throws TrustedComputingException, ClassCastException, ClassNotFoundException,
         InstantiationException, IllegalAccessException {
   TPMContext context = TPMContext.getInstance();
   context.close();
 }