Class PKCS11KeyId


  • public class PKCS11KeyId
    extends Object
    Identifier of a PKCS#11 key Object.
    Author:
    Lijun Liao (xipki)
    • Constructor Detail

      • PKCS11KeyId

        public PKCS11KeyId​(long handle,
                           long objectClass,
                           long keyType,
                           byte[] id,
                           String label)
        Constructor.
        Parameters:
        handle - The object handle.
        objectClass - The object handle.
        keyType - The key type.
        id - Identifier. Cannot be null or zero-length if label is null or blank.
        label - Label. Cannot be null and blank if id is null or zero-length.
    • Method Detail

      • getKeyType

        public long getKeyType()
      • getObjectCLass

        public long getObjectCLass()
      • getHandle

        public long getHandle()
      • getId

        public byte[] getId()
      • getIdHex

        public String getIdHex()
      • getLabel

        public String getLabel()
      • getPublicKeyHandle

        public Long getPublicKeyHandle()
      • setPublicKeyHandle

        public void setPublicKeyHandle​(Long publicKeyHandle)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object