Class CKAKeyType

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CKAKeyType.AES
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_AES.
      static class  CKAKeyType.BATON
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_BATON.
      static class  CKAKeyType.Blowfish
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_BLOWFISH.
      static class  CKAKeyType.Camellia
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_CAMELLIA.
      static class  CKAKeyType.CAST
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_CAST.
      static class  CKAKeyType.CAST128
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_CAST128.
      static class  CKAKeyType.CAST3
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_CAST3.
      static class  CKAKeyType.CAST5
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_CAST5.
      static class  CKAKeyType.CDMF
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_CDMF.
      static class  CKAKeyType.DES
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_DES.
      static class  CKAKeyType.DES2
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_DES2.
      static class  CKAKeyType.DES3
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_DES3.
      static class  CKAKeyType.DH
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_DH.
      static class  CKAKeyType.DSA
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_DSA.
      static class  CKAKeyType.EC
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_EC.
      static class  CKAKeyType.ECDSA
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_ECDSA.
      static class  CKAKeyType.GenericSecret
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_GENERIC_SECRET.
      static class  CKAKeyType.IDEA
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_IDEA.
      static class  CKAKeyType.JUNIPER
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_JUNIPER.
      static class  CKAKeyType.KEA
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_KEA.
      static class  CKAKeyType.RC2
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_RC2.
      static class  CKAKeyType.RC4
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_RC4.
      static class  CKAKeyType.RC5
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_RC5.
      static class  CKAKeyType.RSA
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_RSA.
      static class  CKAKeyType.Seed
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_SEED.
      static class  CKAKeyType.Skipjack
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_SKIPJACK.
      static class  CKAKeyType.Twofish
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_TWOFISH.
      static class  CKAKeyType.X9_42_DH
      Representation of a PKCS#11 CK_ATTRIBUTE with type CKA_KEY_TYPE and value CKK_X9_42_DH.
    • 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

      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_KEY_TYPE 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_KEY_TYPE attribute.
      • Methods inherited from class java.lang.Object

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

      • 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 Detail

      • 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.
      • 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