|
Oracle Fusion Middleware PKI SDK TSP Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10677-03 |
|||||||
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
public class 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(java.security.PrivateKey signerKey, java.security.cert.X509Certificate 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. |
java.security.cert.X509Certificate |
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(java.security.PrivateKey signerKey, java.security.cert.X509Certificate 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(java.security.PrivateKey signerKey, java.security.cert.X509Certificate 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
Note the changes in the method signature
Previously public TSPTimeStampResp (oracle.security.crypto.core.PrivateKey , X509, AlgorithmIdentifier , AlgorithmIdentifier,AttributeSet, AttributeSet , boolean4, PKIStatusInfo, TSTInfo , boolean )
Now public TSPTimeStampResp (java.security.PrivateKey , X509Certificate, AlgorithmIdentifier , AlgorithmIdentifier,AttributeSet, AttributeSet , boolean4, PKIStatusInfo, TSTInfo , boolean )
signerKey
- The TSA's private key.signerCert
- The TSA's public certificate.digetsAlgID
- The digest algorithm for the timeStampToken.digestEncryptionAlgID
- The digest encryption algorithm for the timeStampToken.authAttr
- The authenticated attributes of the timeStampToken.unauthAttr
- The unauthenticatedAttributes of the timeStampToken.useSPKI
- true
uses a 64 bit SPKI; false
uses a 160 bit SPKIstatus
- 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.TSPException
public 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 java.security.cert.X509Certificate getSignerCert()
public void setSigningParameters(java.security.PrivateKey signerKey, java.security.cert.X509Certificate 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)
Note the changes in the method signature
Previously public void setSigningParameters (oracle.security.crypto.core.PrivateKey , X509e, AlgorithmIdentifier , AlgorithmIdentifier ,AttributeSet , AttributeSet , boolean )
Now public void setSigningParameters (java.security.PrivateKey , X509Certificate, AlgorithmIdentifier , AlgorithmIdentifier ,AttributeSet , AttributeSet , boolean )
signerKey
- The TSA's private key.signerCert
- The TSA's public certificate.digetsAlgID
- The digest algorithm for the timeStampToken.digestEncryptionAlgID
- The digest encryption algorithm for the timeStampToken.authAttr
- The authenticated attributes of the timeStampToken.unauthAttr
- The unauthenticatedAttributes of the timeStampToken.useSPKI
- true
uses a 64 bit SPKI; false
uses a 160 bit SPKIpublic MessageImprint getMessageImprint()
getMessageImprint
in class TSPMessage
public oracle.security.crypto.cms.CMSSignedDataContentInfo getTimeStampToken()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The other object.public java.lang.String toString()
toString
in class java.lang.Object
protected void parseMessage(byte[] data) throws java.io.IOException
parseMessage
in class TSPMessage
java.io.IOException
protected byte[] getEncoded() throws java.io.IOException
getEncoded
in class TSPMessage
java.io.IOException
|
Oracle Fusion Middleware PKI SDK TSP Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10677-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |