Class CKAKeyType

All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
CKAKeyType.AES, CKAKeyType.BATON, CKAKeyType.Blowfish, CKAKeyType.Camellia, CKAKeyType.CAST, CKAKeyType.CAST128, CKAKeyType.CAST3, CKAKeyType.CAST5, CKAKeyType.CDMF, CKAKeyType.DES, CKAKeyType.DES2, CKAKeyType.DES3, CKAKeyType.DH, CKAKeyType.DSA, CKAKeyType.EC, CKAKeyType.ECDSA, CKAKeyType.GenericSecret, CKAKeyType.IDEA, CKAKeyType.JUNIPER, CKAKeyType.KEA, CKAKeyType.RC2, CKAKeyType.RC4, CKAKeyType.RC5, CKAKeyType.RSA, CKAKeyType.Seed, CKAKeyType.Skipjack, CKAKeyType.Twofish, CKAKeyType.X9_42_DH

public class CKAKeyType extends CKAttribute
CKA_KEY_TYPE is an instance of a PKCS#11 CK_ATTRIBUTE with type = CKA_KEY_TYPE.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_AES.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_BATON.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_BLOWFISH.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_CAMELLIA.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_CAST.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_CAST128.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_CAST3.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_CAST5.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_CDMF.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_DES.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_DES2.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_DES3.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_DH.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_DSA.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_EC.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_ECDSA.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_GENERIC_SECRET.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_IDEA.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_JUNIPER.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_KEA.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_RC2.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_RC4.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_RC5.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_RSA.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_SEED.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_SKIPJACK.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_TWOFISH.
    static class 
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_X9_42_DH.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private long
     

    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
    CKAKeyType(long value)
    Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and a custom value.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Allocate native resources, setting mPointer and mPointerSize as appropriate.
    long
    Get the value of this CKA_KEY_TYPE attribute.
    protected void
    Called to deallocate native resources; note that mPointer.close() is called afterwards.
    void
    setValue(long value)
    Set the value of this CKA_KEY_TYPE attribute.

    Methods inherited from class org.mozilla.jss.util.NativeEnclosure

    close, finalize, open

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • value

      private long value
  • Constructor Details

    • CKAKeyType

      public CKAKeyType(long value)
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and a custom value. Note: it is generally recommended to use the subclasses of this class instead of providing a custom value.
  • Method Details

    • setValue

      public void setValue(long value)
      Set the value of this CKA_KEY_TYPE attribute.
    • getValue

      public long getValue()
      Get the value of this CKA_KEY_TYPE attribute.
    • acquireNativeResources

      protected void acquireNativeResources()
      Description copied from class: NativeEnclosure
      Allocate native resources, setting mPointer and mPointerSize as appropriate.
      Specified by:
      acquireNativeResources in class NativeEnclosure
    • 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