/** * Default Constructor. * * @preconditions * @postconditions */ public ECPrivateKey() { keyType.setLongValue(thisKeyType()); }
/** * Called by getInstance to create an instance of a PKCS#11 ECDSA private * key. * * @param session * The session to use for reading attributes. This session must * have the appropriate rights; i.e. it must be a user-session, if * it is a private object. * @param objectHandle * The object handle as given from the PKCS#111 module. * @exception TokenException * If getting the attributes failed. * @preconditions (session <> null) * @postconditions */ protected ECPrivateKey(Session session, long objectHandle) throws TokenException { super(session, objectHandle); keyType.setLongValue(thisKeyType()); }