Package org.xipki.pkcs11.wrapper
Class PKCS11KeyId
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.PKCS11KeyId
-
public class PKCS11KeyId extends Object
Identifier of a PKCS#11 key Object.- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description PKCS11KeyId(long handle, long objectClass, long keyType, byte[] id, String label)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)longgetHandle()byte[]getId()StringgetIdHex()longgetKeyType()StringgetLabel()longgetObjectCLass()LonggetPublicKeyHandle()inthashCode()voidsetPublicKeyHandle(Long publicKeyHandle)StringtoString()
-
-
-
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 isnullor blank.label- Label. Cannot benulland 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)
-
-