public class MSESetDST extends Command
Modifier and Type | Class and Description |
---|---|
static class |
MSESetDST.DST_TYPE |
CLA, LE, P1, responseData, SW, SW2, swDescription, TAG
Constructor and Description |
---|
MSESetDST(MSESetDST.DST_TYPE type) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
buildData() |
protected void |
ownCheckStatusResponse() |
void |
setCryptographicMechanismReference(byte[] id) |
void |
setFileReference(int[] fileIds) |
void |
setPrivateKeyReference(byte[] pkr) |
void |
setPrivateKeyReference(int pkr) |
void |
setPublicKeyReference(byte[] kr) |
void |
setPublicKeyReference(java.lang.String kr)
ISO 8859-1 encoded name of the public key.
|
getInstance, getResponseData, send
public MSESetDST(MSESetDST.DST_TYPE type)
type
- java.io.IOException
public void setCryptographicMechanismReference(byte[] id) throws java.io.IOException
id
- java.io.IOException
public void setPublicKeyReference(java.lang.String kr) throws java.io.IOException
kr
- java.io.IOException
public void setPublicKeyReference(byte[] kr) throws java.io.IOException
kr
- java.io.IOException
public void setPrivateKeyReference(int pkr) throws java.io.IOException
pkr
- java.io.IOException
public void setPrivateKeyReference(byte[] pkr) throws java.io.IOException
pkr
- java.io.IOException
public void setFileReference(int[] fileIds)
fileIds
- java.io.IOException
- The data object is REQUIRED for PSC and MUST contain the following content:
•0x80: MAY be present and encapsulate the concatenation of two byte file IDs for data group content to be integrated into the signature computation.
•0x81: MAY be present and contain the content 0x00FF encoded as plain octet string (without tag and length)
if the Specific Attribute of the terminal is to be integrated into signature computation.protected byte[] buildData() throws java.io.IOException
protected void ownCheckStatusResponse() throws java.io.IOException
ownCheckStatusResponse
in class Command
java.io.IOException