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