Package org.mozilla.jss.pkcs11.attrs
Class CKAUsage
- java.lang.Object
-
- org.mozilla.jss.util.NativeEnclosure
-
- org.mozilla.jss.pkcs11.attrs.CKAttribute
-
- org.mozilla.jss.pkcs11.attrs.CKAUsage
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
CKAUsage.Decrypt
,CKAUsage.Derive
,CKAUsage.Encrypt
,CKAUsage.Sign
,CKAUsage.SignRecover
,CKAUsage.Unwrap
,CKAUsage.Verify
,CKAUsage.VerifyRecover
,CKAUsage.Wrap
public class CKAUsage extends CKAttribute
CKAUsage is a collection of PKCS#11 CK_ATTRIBUTES which have common value (CK_TRUE).
-
-
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.
-
Field Summary
-
Fields inherited from class org.mozilla.jss.pkcs11.attrs.CKAttribute
type
-
Fields inherited from class org.mozilla.jss.util.NativeEnclosure
mPointer, mPointerSize
-
-
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 org.mozilla.jss.util.NativeEnclosure
close, finalize, open
-
-
-
-
Method Detail
-
acquireNativeResources
protected void acquireNativeResources()
Description copied from class:NativeEnclosure
Allocate native resources, setting mPointer and mPointerSize as appropriate.- Specified by:
acquireNativeResources
in classNativeEnclosure
-
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 classNativeEnclosure
-
-