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