/** * Default Constructor. * * @preconditions * @postconditions */ public MonotonicCounter() { hardwareFeatureType.setLongValue(FeatureType.MONOTONIC_COUNTER); }
/** * Default Constructor. */ public UserInterface() { hardwareFeatureType.setLongValue(FeatureType.USER_INTERFACE); }
/** * Default Constructor. * * @preconditions * @postconditions */ public Clock() { hardwareFeatureType.setLongValue(FeatureType.CLOCK); }
/** * Called by getInstance to create an instance of a PKCS#11 clock. * * @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 Clock(Session session, long objectHandle) throws TokenException { super(session, objectHandle); hardwareFeatureType.setLongValue(FeatureType.CLOCK); }
/** * Called by getInstance to create an instance of a PKCS#11 user interface. * * @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. */ protected UserInterface(Session session, long objectHandle) throws TokenException { super(session, objectHandle); hardwareFeatureType.setLongValue(FeatureType.USER_INTERFACE); }
/** * Called by getInstance to create an instance of a PKCS#11 monotonic * counter. * * @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 MonotonicCounter(Session session, long objectHandle) throws TokenException { super(session, objectHandle); hardwareFeatureType.setLongValue(FeatureType.MONOTONIC_COUNTER); }