Package org.mozilla.jss.pkcs11.attrs
Class CKAClass
- java.lang.Object
-
- org.mozilla.jss.util.NativeEnclosure
-
- org.mozilla.jss.pkcs11.attrs.CKAttribute
-
- org.mozilla.jss.pkcs11.attrs.CKAClass
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
CKAClass.Certificate
,CKAClass.Data
,CKAClass.DomainParameters
,CKAClass.HWFeature
,CKAClass.Mechanism
,CKAClass.PrivateKey
,CKAClass.PublicKey
,CKAClass.SecretKey
public class CKAClass extends CKAttribute
CKAClass is an instance of a PKCS#11 CK_ATTRIBUTE with type = CKA_CLASS.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CKAClass.Certificate
Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_CLASS and value CKO_CERTIFICATE.static class
CKAClass.Data
Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_CLASS and value CKO_DATA.static class
CKAClass.DomainParameters
Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_CLASS and value CKO_DOMAIN_PARAMETERS.static class
CKAClass.HWFeature
Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_CLASS and value CKO_HW_FEATURE.static class
CKAClass.Mechanism
Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_CLASS and value CKO_MECHANISM.static class
CKAClass.PrivateKey
Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_CLASS and value CKO_PRIVATE_KEY.static class
CKAClass.PublicKey
Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_CLASS and value CKO_PUBLIC_KEY.static class
CKAClass.SecretKey
Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_CLASS and value CKO_SECRET_KEY.
-
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 CKAClass(long value)
Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_CLASS and a custom value.
-
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.long
getValue()
Get the value of this CKA_CLASS attribute.protected void
releaseNativeResources()
Called to deallocate native resources; note that mPointer.close() is called afterwards.void
setValue(long value)
Set the value of this CKA_CLASS attribute.-
Methods inherited from class org.mozilla.jss.util.NativeEnclosure
close, finalize, open
-
-
-
-
Method Detail
-
setValue
public void setValue(long value)
Set the value of this CKA_CLASS attribute.
-
getValue
public long getValue()
Get the value of this CKA_CLASS attribute.
-
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
-
-