|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.jc.DAPBlock
Represents a DAP block as defined in Global Platform and as we save it in a CAP-file. In the latter case the X.509 public certificate is included if available.
| Field Summary | |
static int |
DES_DAP_ALG_201
DES DAP algorithm as defined in VOP 2.0.1' |
static int |
DES_DAP_ALG_211
DES DAP algorithm as defined in GP 2.1.1 |
static int |
PK_DAP_ALG
PK DAP algorithm |
| Constructor Summary | |
DAPBlock(byte[] aid,
byte[] sig,
java.lang.Object cert)
Deprecated. |
|
DAPBlock(byte[] aid,
byte[] sig,
java.lang.Object cert,
int alg)
Constructs a DAP block. |
|
DAPBlock(byte[] dapInfo,
int off,
int len)
Constructs a DAP block object based on the DAP information saved in a CAP file. |
|
| Method Summary | |
byte[] |
getAID()
Returns the AID of the Security Domain which is supposed to verify this DAP. |
java.lang.String |
getAIDString()
Returns the AID of the Security Domain which is supposed to verify this DAP as a HEX string. |
byte[] |
getCapInfo()
Encodes DAP info as it is saved in CAP-files. |
java.lang.Object |
getCert()
Returns the public certificate. |
int |
getDAPAlgorithm()
Returns the DAP generation algorithm. |
byte[] |
getEncoded()
Builds a DAP block as defined in Global Platform. |
byte[] |
getSignature()
Returns the DAP. |
java.lang.String |
getSignatureString()
Returns the DAP as HEX string. |
SSLName |
getSigner()
Returns info about the DAP generator. |
void |
setAID(byte[] aid)
Sets the AID of the Security Domain which is supposed to verify this DAP. |
void |
setCert(java.lang.Object cert)
Sets the public certificate. |
void |
setSignature(byte[] sig)
Sets the DAP (signature). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DES_DAP_ALG_201
public static final int DES_DAP_ALG_211
public static final int PK_DAP_ALG
| Constructor Detail |
public DAPBlock(byte[] dapInfo,
int off,
int len)
throws JCException
dapInfo - Info from the CAP file. The format is
algorithm | DAP-block | [X.509 cert].off - offset in dapInfo.len - length of DAP information.
public DAPBlock(byte[] aid,
byte[] sig,
java.lang.Object cert)
throws JCException
aid - AID of the Security Domain to do the
DAP verification.sig - the DAP signature.cert - optional RSA certificate used to generate the signature,
might be null.com.ibm.jc.CapFile.makePrivateCert
public DAPBlock(byte[] aid,
byte[] sig,
java.lang.Object cert,
int alg)
throws JCException
aid - AID of the Security Domain to do the
DAP verification.sig - the DAP signature.cert - optional RSA certificate used to generate the signature,
might be null.alg - the DAP generation algorithm used. Only applicable in case
of DES DAP, otherwise this parameter is ignored.DES_DAP_ALG_201,
DES_DAP_ALG_211,
com.ibm.jc.CapFile.makePrivateCert| Method Detail |
public byte[] getEncoded()
throws JCException
JCExceptionpublic byte[] getCapInfo()
public int getDAPAlgorithm()
DES_DAP_ALG_201,
DES_DAP_ALG_211,
PK_DAP_ALGpublic java.lang.Object getCert()
public void setCert(java.lang.Object cert)
cert - the certificate.public byte[] getSignature()
public void setSignature(byte[] sig)
throws JCException
sig - the DAP.
JCExceptionpublic java.lang.String getSignatureString()
public byte[] getAID()
public void setAID(byte[] aid)
throws JCException
aid - the AID.
JCExceptionpublic java.lang.String getAIDString()
public SSLName getSigner()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||