Class CKAUsage

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CKAUsage.Decrypt
      CKADecrypt is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_DECRYPT and value CK_TRUE.
      static class  CKAUsage.Derive
      CKADerive is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_DERIVE and value CK_TRUE.
      static class  CKAUsage.Encrypt
      CKAEncrypt is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_ENCRYPT and value CK_TRUE.
      static class  CKAUsage.Sign
      CKASign is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_SIGN and value CK_TRUE.
      static class  CKAUsage.SignRecover
      CKASignRecover is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_SIGN_RECOVER and value CK_TRUE.
      static class  CKAUsage.Unwrap
      CKAUnwrap is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_UNWRAP and value CK_TRUE.
      static class  CKAUsage.Verify
      CKAVerify is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_VERIFY and value CK_TRUE.
      static class  CKAUsage.VerifyRecover
      CKAVerifyRecover is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_VERIFY_RECOVER and value CK_TRUE.
      static class  CKAUsage.Wrap
      CKAWrap is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_WRAP and value CK_TRUE.
    • Constructor Summary

      Constructors 
      Constructor Description
      CKAUsage​(long type)
      Representation of a PKCS#11 CK_ATTRIBUTE with custom type, setting the value to CK_TRUE.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void acquireNativeResources()
      Allocate native resources, setting mPointer and mPointerSize as appropriate.
      protected void releaseNativeResources()
      Called to deallocate native resources; note that mPointer.close() is called afterwards.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CKAUsage

        public CKAUsage​(long type)
        Representation of a PKCS#11 CK_ATTRIBUTE with custom type, setting the value to CK_TRUE. Note: it is generally recommended to use the subclasses of this class instead of providing a custom value.
    • Method Detail

      • releaseNativeResources

        protected void releaseNativeResources()
        Description copied from class: NativeEnclosure
        Called to deallocate native resources; note that mPointer.close() is called afterwards. If mPointer.close() should be a no-op, extend from StaticVoidRef and do any required cleanup here.
        Specified by:
        releaseNativeResources in class NativeEnclosure