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