|
Oracle Fusion Middleware CMS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10667-05 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cms.CMSContentInfo
oracle.security.crypto.cms.TSTInfo
public class TSTInfo
This class encapulates a CMS object of content type TimeStampTokenInfo
.
It is used to store TimeStampToken Information as a part of the PKIX Time Stamp Protocol (RFC 3161).
Constructor Summary | |
---|---|
TSTInfo() Creates an empty TSTInfo . |
|
TSTInfo(oracle.security.crypto.asn1.ASN1ObjectID policyID, oracle.security.crypto.core.AlgorithmIdentifier messageImprintHashAlgID, oracle.security.crypto.asn1.ASN1OctetString messageImprintHashMsg, oracle.security.crypto.asn1.ASN1Integer serialNumber, java.util.Date genTime, oracle.security.crypto.asn1.ASN1Integer accuracySecs, oracle.security.crypto.asn1.ASN1Integer accuracyMilliSecs, oracle.security.crypto.asn1.ASN1Integer accuracyMicroSecs, boolean ordering, oracle.security.crypto.asn1.ASN1Integer nonce, oracle.security.crypto.cert.GeneralName tsa, java.util.Vector extensions) Creates a TSTInfo . |
|
TSTInfo(oracle.security.crypto.asn1.ASN1ObjectID policyID, oracle.security.crypto.core.AlgorithmIdentifier messageImprintHashAlgID, oracle.security.crypto.asn1.ASN1OctetString messageImprintHashMsg, oracle.security.crypto.asn1.ASN1Integer serialNumber, java.util.Date genTime, boolean ordering) Creates a TSTInfo . |
|
TSTInfo(java.io.InputStream is) Creates a TSTInfo , by reading a BER encoding from the given input stream. |
Method Summary | |
---|---|
java.math.BigInteger |
getAccuracyMicroSeconds() Returns the time stamp accuracy in microseconds. |
java.math.BigInteger |
getAccuracyMilliSeconds() Returns the time stamp accuracy in milliseconds. |
java.math.BigInteger |
getAccuracySeconds() Returns the time stamp accuracy in seconds. |
protected byte[] |
getExposedContent() Returns the contents octets of the DER encoding of the content field of this CMS object. |
java.util.Vector |
getExtensions() Returns the X509 extensions present in the message. |
java.util.Date |
getGeneralizedTime() Returns the time when this message was generated. |
oracle.security.crypto.core.AlgorithmIdentifier |
getMessageImprintHashAlgID() Returns the Message Imprint Digest Algorithm. |
byte[] |
getMessageImprintHashMsg() Returns the Message Imprint Hash Value. |
java.math.BigInteger |
getNonce() Returns the Nonce. |
boolean |
getOrdering() |
oracle.security.crypto.asn1.ASN1ObjectID |
getPolicyID() Returns the TSA's Policy. |
java.math.BigInteger |
getSerialNumber() Returns the version number. |
oracle.security.crypto.cert.GeneralName |
getTSA() Returns the Time Stamp Authority Identification. |
byte[] |
getTSTInfoData() Returns the encoded TSTInfo . |
java.math.BigInteger |
getVersion() Returns the version number. |
void |
inputContent(java.io.InputStream is) Initialize this object by reading the BER encoding from the specified input stream. |
boolean |
isDetached() Indicate if this object is detached. |
protected void |
setExposedContent(byte[] expContent) Returns the contents octets of the DER encoding of the content field of this CMS object. |
java.lang.String |
toString() Returns a brief text description of this object. |
protected void |
update() Clears the internal output cache. |
Methods inherited from class oracle.security.crypto.cms.CMSContentInfo |
---|
computeDigest, contentTypeName, getContentType, input, inputInstance, isDegenerate, length, output |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TSTInfo()
TSTInfo
.public TSTInfo(oracle.security.crypto.asn1.ASN1ObjectID policyID, oracle.security.crypto.core.AlgorithmIdentifier messageImprintHashAlgID, oracle.security.crypto.asn1.ASN1OctetString messageImprintHashMsg, oracle.security.crypto.asn1.ASN1Integer serialNumber, java.util.Date genTime, boolean ordering)
TSTInfo
.
policyID
- The policy under which the response was issued.messageImprintHashAlgID
- The message imprint digest algorithm.messageImprintHashmsg
- The message imprint value.serialNumber
- The timestamp token serial number.genTime
- The time at which this time stamp token was created.ordering
- Specify the time stamp token ordering.public TSTInfo(oracle.security.crypto.asn1.ASN1ObjectID policyID, oracle.security.crypto.core.AlgorithmIdentifier messageImprintHashAlgID, oracle.security.crypto.asn1.ASN1OctetString messageImprintHashMsg, oracle.security.crypto.asn1.ASN1Integer serialNumber, java.util.Date genTime, oracle.security.crypto.asn1.ASN1Integer accuracySecs, oracle.security.crypto.asn1.ASN1Integer accuracyMilliSecs, oracle.security.crypto.asn1.ASN1Integer accuracyMicroSecs, boolean ordering, oracle.security.crypto.asn1.ASN1Integer nonce, oracle.security.crypto.cert.GeneralName tsa, java.util.Vector extensions)
TSTInfo
.
policyID
- The policy under which the response was issued.messageImprintHashAlgID
- The message imprint digest algorithm.messageImprintHashmsg
- The message imprint value.serialNumber
- The timestamp token serial number.genTime
- The time at which this time stamp token was created.accuracySecs
- The time stamp accuracy in seconds.accuracyMilliSecs
- The time stamp accuracy in milliseconds.accuracyMicroSecs
- The time stamp accuracy in microseconds.ordering
- Specify the time stamp token ordering.nonce
- The nonce from the time stamp request.tsa
- The time stamp authority identification.extensions
- A collection of RFC-2559 extensions (X509Extension</code).
TSTInfo
public TSTInfo(java.io.InputStream is)
throws java.io.IOException
Creates a TSTInfo
, by reading a BER encoding from the given input stream.
is
- The input stream.java.io.IOException
- If the input is not correctly formatted or an I/O exception occurs while reading from the input stream.Method Detail |
---|
protected void setExposedContent(byte[] expContent)
CMSContentInfo
setExposedContent
in class CMSContentInfo
CMSContentInfo.isDetached()
protected byte[] getExposedContent()
CMSContentInfo
getExposedContent
in class CMSContentInfo
null
for a detached CMS object.CMSContentInfo.isDetached()
public boolean isDetached()
This method returns true only for an empty ESSReceipt
object which should not be used for PKIX-TSP (RFC 3161).
isDetached
in class CMSContentInfo
true
if detached; false
otherwise.CMSContentInfo.isDetached()
public java.math.BigInteger getVersion()
public oracle.security.crypto.asn1.ASN1ObjectID getPolicyID()
public oracle.security.crypto.core.AlgorithmIdentifier getMessageImprintHashAlgID()
public byte[] getMessageImprintHashMsg()
public java.math.BigInteger getSerialNumber()
public java.util.Date getGeneralizedTime()
public java.math.BigInteger getAccuracySeconds()
null
otherwise..public java.math.BigInteger getAccuracyMilliSeconds()
null
otherwise..public java.math.BigInteger getAccuracyMicroSeconds()
null
otherwise..public boolean getOrdering()
public java.math.BigInteger getNonce()
null
otherwise.public oracle.security.crypto.cert.GeneralName getTSA()
GeneralName
of the time stamp authority.public java.util.Vector getExtensions()
X509Extension
if present or null
otherwise..public byte[] getTSTInfoData() throws java.io.IOException
TSTInfo
.java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public void inputContent(java.io.InputStream is) throws java.io.IOException
inputContent
in class CMSContentInfo
is
- The input stream.java.io.IOException
- An I/O error occurred or the object encoding was incorrect.protected void update()
update
in class CMSContentInfo
|
Oracle Fusion Middleware CMS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10667-05 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |