public class CkiData
extends java.lang.Object
Constructor and Description |
---|
CkiData() |
CkiData(CkiSession session, byte[] keyID)
Creates a new CkiData object.
|
CkiData(CkiSession session, CkiObject ckiObject)
Creates a new CkiData object.
|
CkiData(CkiSlot slot, byte[] keyID)
Creates a new CkiData object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApplicationName()
Gets the description of the application that manages this
CkiData object from the token, or null if this field was not set on the token. |
CkiObject |
getCkiObject()
Returns the CkiObject of this CkiData.
|
byte[] |
getKeyID()
Gets the keyID of this CkiData object.
|
java.lang.String |
getLabel()
Retrieves the label of this CkiData passed in parameter
|
ASN1ObjectID |
getOID()
Gets the Object Identifier indicating the type of this
CkiData object from the token, or null if this field was not set on the token. |
CkiSlot |
getSlot()
Gets the cki slot corresponding to this CkiData object.
|
byte[] |
getValue()
Gets the value of this
CkiData object from the token, or null if this field was not set on the token. |
void |
setKeyID(byte[] keyID)
Sets the keyID of this CkiData object.
|
void |
setLabel(java.lang.String label)
Sets the label of this CkiData passed in parameter
|
void |
setSlot(CkiSlot slot)
Sets the slot.
|
java.lang.String |
toString()
Returns a string representation of the
CkiData object. |
public CkiData()
public CkiData(CkiSlot slot, byte[] keyID) throws CryptokiException
slot
- The ckislot where the data can be found.keyID
- The keyID of the data.CryptokiException
public CkiData(CkiSession session, byte[] keyID) throws CryptokiException
session
- The session to use to retrieve the data.keyID
- The keyID of the data.CryptokiException
public CkiData(CkiSession session, CkiObject ckiObject) throws CryptokiException
session
- The CkiSession object.handle
- The CkiObject pointing to the object on the token within the session.CryptokiException
public byte[] getValue() throws CryptokiException
CkiData
object from the token, or null
if this field was not set on the token.CryptokiException
public ASN1ObjectID getOID() throws CryptokiException
CkiData
object from the token, or null
if this field was not set on the token.CryptokiException
public java.lang.String getApplicationName() throws CryptokiException
CkiData
object from the token, or null
if this field was not set on the token.CryptokiException
public byte[] getKeyID()
public void setKeyID(byte[] keyID) throws CryptokiException
keyID
- The new key ID.CryptokiException
public void setLabel(java.lang.String label) throws CryptokiException
label
- The new label.CryptokiException
public java.lang.String getLabel() throws CryptokiException
byte[]
CryptokiException
public void setSlot(CkiSlot slot)
public CkiSlot getSlot()
public CkiObject getCkiObject() throws CryptokiException
CryptokiException
public java.lang.String toString()
CkiData
object.toString
in class java.lang.Object