|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.jc.LoadToken
Represents a Load Token as defined in VOP and as we save it in a CAP-file. Appart from the the Load Token (signature) itself it also contains the InstallForLoad() parameters for which it has been generated.
| Constructor Summary | |
LoadToken(byte[] signature,
byte[] sha,
byte[] sdaid,
byte[] loadParams,
byte[] pkgAID,
java.lang.Object cert)
Constructs a Load Token object. |
|
LoadToken(byte[] ltInfo,
int off,
int len)
Constructs a Load Token object based on the Load Token information saved in a CAP file. |
|
| Method Summary | |
byte[] |
getCapInfo()
Encodes Load Token info as it's saved in CAP-files. |
java.lang.Object |
getCert()
Returns the public certificate. |
byte[] |
getLoadParams()
Returns the load parameters the package will be loaded with. |
java.lang.String |
getLoadParamsString()
Returns the load parameters the package will be loaded with as HEX String. |
byte[] |
getPkgAID()
Returns the AID of the package to load. |
java.lang.String |
getPkgAIDString()
Returns the AID of the package to load as a HEX string. |
byte[] |
getSDAID()
Returns the AID of the Security Domain the package will be associated with. |
java.lang.String |
getSDAIDString()
Returns the AID of the Security Domain the package will be associated with as HEX String. |
byte[] |
getSHA()
Returns the SHA digest over the Load File |
java.lang.String |
getSHAString()
Returns the SHA digest over the Load File as a HEX string. |
byte[] |
getSignature()
Returns the Load Token. |
java.lang.String |
getSignatureString()
Returns the Load Token as HEX string. |
SSLName |
getSigner()
Returns info about the Load Token generator. |
void |
setCert(java.lang.Object cert)
Sets the public certificate. |
void |
setSignature(byte[] sig)
Sets the Load Token (signature). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LoadToken(byte[] ltInfo,
int off,
int len)
throws JCException
ltInfo - Info from the CAP file. The format is
signature|sha|L|sdaid|L|loadParams|L|pkgAID|[X.509 cert]
where L is the length byte for the following component.off - offset in ltInfo.len - length of Load Token information.
public LoadToken(byte[] signature,
byte[] sha,
byte[] sdaid,
byte[] loadParams,
byte[] pkgAID,
java.lang.Object cert)
throws JCException
signature - the Load Token.sha - load file hash.sdaid - Security Domain AIDloadParams - load parameters (raw format)pkgAID - package AID.cert - optional RSA certificate used to generate the signature,
might be null.com.ibm.jc.CapFile.makePrivateCert| Method Detail |
public byte[] getCapInfo()
public java.lang.Object getCert()
public void setCert(java.lang.Object cert)
cert - the certificate.public SSLName getSigner()
public byte[] getSignature()
public void setSignature(byte[] sig)
throws JCException
sig - the Load Token.
JCExceptionpublic java.lang.String getSignatureString()
public byte[] getSHA()
public java.lang.String getSHAString()
public byte[] getPkgAID()
public java.lang.String getPkgAIDString()
public byte[] getSDAID()
public java.lang.String getSDAIDString()
public byte[] getLoadParams()
public java.lang.String getLoadParamsString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||