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 classCKAUsage.DecryptCKADecrypt is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_DECRYPT and value CK_TRUE.static classCKAUsage.DeriveCKADerive is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_DERIVE and value CK_TRUE.static classCKAUsage.EncryptCKAEncrypt is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_ENCRYPT and value CK_TRUE.static classCKAUsage.SignCKASign is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_SIGN and value CK_TRUE.static classCKAUsage.SignRecoverCKASignRecover is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_SIGN_RECOVER and value CK_TRUE.static classCKAUsage.UnwrapCKAUnwrap is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_UNWRAP and value CK_TRUE.static classCKAUsage.VerifyCKAVerify is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_VERIFY and value CK_TRUE.static classCKAUsage.VerifyRecoverCKAVerifyRecover is an instance of PKCS#11 CK_ATTRIBUTE with type = CKA_VERIFY_RECOVER and value CK_TRUE.static classCKAUsage.WrapCKAWrap 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 voidacquireNativeResources()Allocate native resources, setting mPointer and mPointerSize as appropriate.protected voidreleaseNativeResources()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:NativeEnclosureAllocate native resources, setting mPointer and mPointerSize as appropriate.- Specified by:
acquireNativeResourcesin classNativeEnclosure
-
releaseNativeResources
protected void releaseNativeResources()
Description copied from class:NativeEnclosureCalled 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:
releaseNativeResourcesin classNativeEnclosure
-
-