/** * Get information about this session. * * @return An object providing information about this session. * @exception TokenException * If getting the information failed. * @preconditions * @postconditions (result <> null) */ public SessionInfo getSessionInfo() throws TokenException { CK_SESSION_INFO ckSessionInfo; try { ckSessionInfo = pkcs11Module.C_GetSessionInfo(sessionHandle); } catch (sun.security.pkcs11.wrapper.PKCS11Exception ex) { throw new PKCS11Exception(ex); } return new SessionInfo(ckSessionInfo); }