/** * Read the values of the attributes of this object from the token. * * @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. * @exception TokenException * If getting the attributes failed. * @preconditions (session <> null) * @postconditions */ @Override public void readAttributes(Session session) throws TokenException { super.readAttributes(session); PKCS11Object.getAttributeValue(session, objectHandle, local); }
/** * Read the values of the attributes of this object from the token. * * @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. * @exception TokenException * If getting the attributes failed. * @preconditions (session <> null) * @postconditions */ @Override public void readAttributes(Session session) throws TokenException { super.readAttributes(session); PKCS11Object.getAttributeValues(session, objectHandle, new Attribute[] { trusted, certificateCategory, checkValue, startDate, endDate}); }
/** * Read the values of the attributes of this object from the token. * * @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. * @exception TokenException * If getting the attributes failed. * @preconditions (session <> null) * @postconditions */ @Override public void readAttributes(Session session) throws TokenException { super.readAttributes(session); PKCS11Object.getAttributeValues(session, objectHandle, new Attribute[] { id, startDate, endDate, derive, local, keyGenMechanism }); PKCS11Object.getAttributeValue(session, objectHandle, allowedMechanisms); }
/** * Read the values of the attributes of this object from the token. * * @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. * @exception TokenException * If getting the attributes failed. * @preconditions (session <> null) * @postconditions */ @Override public void readAttributes(Session session) throws TokenException { super.readAttributes(session); PKCS11Object.getAttributeValue(session, objectHandle, application); PKCS11Object.getAttributeValue(session, objectHandle, objectID); PKCS11Object.getAttributeValue(session, objectHandle, value); }