|
Oracle Security Developer Tools PKI SDK TSP Java API Reference 10g Release 3 (10.1.3) B25376-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.security.crypto.tsp.TSPMessage
oracle.security.crypto.tsp.TSPTimeStampResp
A TSP message of type TimeStampResp as defined in RFC 3161.
| Constructor Summary | |
TSPTimeStampResp()Creates a new TSPTimeStampResp object with no paramters initially set. |
|
TSPTimeStampResp(java.io.InputStream is)Constructs a TSPTimeStampResp object by reading in a DER-encoded TimeStampResp message from the given input stream. |
|
TSPTimeStampResp(oracle.security.crypto.core.PrivateKey signerKey, oracle.security.crypto.cert.X509 signerCert, oracle.security.crypto.core.AlgorithmIdentifier digestAlgId, oracle.security.crypto.core.AlgorithmIdentifier digestEncryptionAlgId, oracle.security.crypto.cert.AttributeSet authAttr, oracle.security.crypto.cert.AttributeSet unauthAttr, boolean useSPKI64, oracle.security.crypto.cmp.PKIStatusInfo status, oracle.security.crypto.cms.TSTInfo tstInfo, boolean includeCert)Creates a new TSPTimeStampResp object initialized with the given parameters. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)Indicates whether some other object is "equal to" this one. |
protected byte[] |
getEncoded() |
boolean |
getIncludeCert()Returns true if the TSA's certificate will be included in the timeStampToken upon output. |
MessageImprint |
getMessageImprint()Returns the messageImprint included in the timeStampToken, or null if no timeStampToken is present. |
oracle.security.crypto.cert.X509 |
getSignerCert()Returns the TSA's public certificate, or null if no certificate is associated with this message. |
oracle.security.crypto.cms.CMSSignerInfo |
getSignerInfo()Gets the SigerInfo associated with the timeStampToken, or null if no timeStampToken is present. |
oracle.security.crypto.cmp.PKIStatusInfo |
getStatus()Returns the status field of this message. |
oracle.security.crypto.cms.CMSSignedDataContentInfo |
getTimeStampToken()Returns the timeStampToken included in this message, or null if no timeStampToken is present. |
oracle.security.crypto.cms.TSTInfo |
getTSTInfo()Returns the tstInfo object associated with this message, or null if no timeStampToken is included in the message. |
protected void |
parseMessage(byte[] data) |
void |
setIncludeCert(boolean b)Specifies whether the TSA's certificate will be included in the timeStampToken upon output. |
void |
setSigningParameters(oracle.security.crypto.core.PrivateKey signerKey, oracle.security.crypto.cert.X509 signerCert, oracle.security.crypto.core.AlgorithmIdentifier digestAlgId, oracle.security.crypto.core.AlgorithmIdentifier digestEncryptionAlgId, oracle.security.crypto.cert.AttributeSet authenticatedAttributes, oracle.security.crypto.cert.AttributeSet unauthenticatedAttributes, boolean useSPKI6)Sets the paramaters to be used to sign the timeStampToken associated with this message. |
void |
setStatus(oracle.security.crypto.cmp.PKIStatusInfo status)Sets the status field of this message. |
void |
setTSTInfo(oracle.security.crypto.cms.TSTInfo tstInfo)Sets the tstInfo object to be associated with this message. |
java.lang.String |
toString()Returns a string representation of this object. |
| Methods inherited from class oracle.security.crypto.tsp.TSPMessage |
input, length, output |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TSPTimeStampResp()
public TSPTimeStampResp(oracle.security.crypto.core.PrivateKey signerKey,
oracle.security.crypto.cert.X509 signerCert,
oracle.security.crypto.core.AlgorithmIdentifier digestAlgId,
oracle.security.crypto.core.AlgorithmIdentifier digestEncryptionAlgId,
oracle.security.crypto.cert.AttributeSet authAttr,
oracle.security.crypto.cert.AttributeSet unauthAttr,
boolean useSPKI64,
oracle.security.crypto.cmp.PKIStatusInfo status,
oracle.security.crypto.cms.TSTInfo tstInfo,
boolean includeCert)
throws TSPException
signerKey - The TSA's private key.signerCert - The TSA's public certificate.authAttr - The authenticated attributes of the timeStampToken.unauthAttr - The unauthenticatedAttributes of the timeStampToken.status - The PKIStatusInfo associated with this message.tstInfo - The TSTInfo object to be included in the timeStampToken.includeCert - If true, the TSA's certificate will be included in the timeStampToken.TSPException - If an error occurs contructing the message.
public TSPTimeStampResp(java.io.InputStream is)
throws java.io.IOException
is - The input stream.If - an I/O error occurs.java.io.IOException| Method Detail |
public oracle.security.crypto.cmp.PKIStatusInfo getStatus()
public void setStatus(oracle.security.crypto.cmp.PKIStatusInfo status)
status - The status.public oracle.security.crypto.cms.TSTInfo getTSTInfo()
public void setTSTInfo(oracle.security.crypto.cms.TSTInfo tstInfo)
throws TSPException
tstInfo - The TSTInfo object.TSPExceptionpublic boolean getIncludeCert()
public void setIncludeCert(boolean b)
throws TSPException
b - If <coded>true</coded>, the certificate will be included.TSPException
public oracle.security.crypto.cms.CMSSignerInfo getSignerInfo()
throws TSPException
TSPException - If an error occurs obtaining the signer information.public oracle.security.crypto.cert.X509 getSignerCert()
public void setSigningParameters(oracle.security.crypto.core.PrivateKey signerKey,
oracle.security.crypto.cert.X509 signerCert,
oracle.security.crypto.core.AlgorithmIdentifier digestAlgId,
oracle.security.crypto.core.AlgorithmIdentifier digestEncryptionAlgId,
oracle.security.crypto.cert.AttributeSet authenticatedAttributes,
oracle.security.crypto.cert.AttributeSet unauthenticatedAttributes,
boolean useSPKI6)
signerKey - The TSA's private key.signerCert - The TSA's public certificate.public MessageImprint getMessageImprint()
getMessageImprint in class TSPMessagepublic oracle.security.crypto.cms.CMSSignedDataContentInfo getTimeStampToken()
public boolean equals(java.lang.Object o)
o - The other object.public java.lang.String toString()
protected void parseMessage(byte[] data)
throws java.io.IOException
parseMessage in class TSPMessagejava.io.IOException
protected byte[] getEncoded()
throws java.io.IOException
getEncoded in class TSPMessagejava.io.IOException
|
Oracle Security Developer Tools PKI SDK TSP Java API Reference 10g Release 3 (10.1.3) B25376-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||