Skip navigation links

Oracle Fusion Middleware PKI SDK TSP Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10677-05


oracle.security.crypto.tsp
Class TSPTimeStampReq

java.lang.Object
  extended by oracle.security.crypto.tsp.TSPMessage
      extended by oracle.security.crypto.tsp.TSPTimeStampReq

All Implemented Interfaces:
oracle.security.crypto.util.Streamable

public class TSPTimeStampReq
extends TSPMessage

A TSP message of type TimeStampReq as defined in RFC 3161.


Constructor Summary
TSPTimeStampReq()
          Creates a new TSPTimeStampReq object with no paramters initially set.
TSPTimeStampReq(java.io.InputStream is)
          Constructs a TSPTimeStampReq object by reading in a DER-encoded TimeStampResp message from the given input stream.
TSPTimeStampReq(MessageImprint mi)
          Creates a new TSPTimeStampResp object initialized with the given MessageImprint object.
TSPTimeStampReq(MessageImprint mi, TSAPolicyID reqPolicy, java.math.BigInteger nonce, boolean certReq, oracle.security.crypto.cert.X509ExtensionSet extensions)
           
TSPTimeStampReq(MessageImprint mi, TSAPolicyID reqPolicy, byte[] nonce, boolean certReq, oracle.security.crypto.cert.X509ExtensionSet extensions)
          Deprecated.  

 

Method Summary
 boolean equals(java.lang.Object o)
          Returns true if this object is "equal to" another object.
 boolean getCertReq()
          Returns the value of certReq field of this object.
protected  byte[] getEncoded()
           
 oracle.security.crypto.cert.X509ExtensionSet getExtensions()
          Returns the extensions field of this object.
 MessageImprint getMessageImprint()
          Returns the messageImprint field of this object.
 byte[] getNonce()
          Deprecated.  
 java.math.BigInteger getNonceAsBigInteger()
           
 TSAPolicyID getReqPolicy()
          Returns the reqPolicy field of this object.
 int getVersion()
          Returns the version of this TimeStampReq message.
protected  void parseMessage(byte[] data)
           
 void setCertReq(boolean b)
          Sets the value of the certReq field of this object.
 void setExtensions(oracle.security.crypto.cert.X509ExtensionSet ext)
          Sets the extensions field of this object.
 void setMessageImprint(MessageImprint mi)
          Sets the messageImprint field of this object.
 void setNonce(java.math.BigInteger data)
          Sets the nonce field of this object.
 void setNonce(byte[] data)
          Deprecated.  
 void setReqPolicy(TSAPolicyID id)
          Sets the reqPolicy field of this object.
 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

TSPTimeStampReq

public TSPTimeStampReq()
Creates a new TSPTimeStampReq object with no paramters initially set.

TSPTimeStampReq

public TSPTimeStampReq(MessageImprint mi)
Creates a new TSPTimeStampResp object initialized with the given MessageImprint object.
Parameters:
mi - The MessageImprint object.

TSPTimeStampReq

public TSPTimeStampReq(MessageImprint mi,
                       TSAPolicyID reqPolicy,
                       byte[] nonce,
                       boolean certReq,
                       oracle.security.crypto.cert.X509ExtensionSet extensions)
Deprecated. 
Creates a new TSPTimeStampResp object initialized with the given parameters.
Parameters:
mi - The MessageImprint object.
reqPolicy - The TSAPolicyID to be included this message.
nonce - The nonce to be included in this message.
certReq - The value of the certReq field of this message.

TSPTimeStampReq

public TSPTimeStampReq(MessageImprint mi,
                       TSAPolicyID reqPolicy,
                       java.math.BigInteger nonce,
                       boolean certReq,
                       oracle.security.crypto.cert.X509ExtensionSet extensions)

TSPTimeStampReq

public TSPTimeStampReq(java.io.InputStream is)
                throws java.io.IOException
Constructs a TSPTimeStampReq object by reading in a DER-encoded TimeStampResp message from the given input stream.
Parameters:
is - The input stream.
Throws:
If - an I/O error occurs.
java.io.IOException

Method Detail

getVersion

public int getVersion()
Returns the version of this TimeStampReq message.

getMessageImprint

public MessageImprint getMessageImprint()
Returns the messageImprint field of this object.
Specified by:
getMessageImprint in class TSPMessage

setMessageImprint

public void setMessageImprint(MessageImprint mi)
Sets the messageImprint field of this object.
Parameters:
mi - The MessageImprint.

getReqPolicy

public TSAPolicyID getReqPolicy()
Returns the reqPolicy field of this object.

setReqPolicy

public void setReqPolicy(TSAPolicyID id)
Sets the reqPolicy field of this object.
Parameters:
TSAPolicyID - The request policy.

getNonce

public byte[] getNonce()
Deprecated. 
Returns the nonce field of this object.

getNonceAsBigInteger

public java.math.BigInteger getNonceAsBigInteger()

setNonce

public void setNonce(java.math.BigInteger data)
Sets the nonce field of this object.
Parameters:
data - The nonce

setNonce

public void setNonce(byte[] data)
Deprecated. 
Parameters:
data - deprecated as a part of Bugfix: 5948455

getCertReq

public boolean getCertReq()
Returns the value of certReq field of this object.

setCertReq

public void setCertReq(boolean b)
Sets the value of the certReq field of this object.
Parameters:
b - The value.

getExtensions

public oracle.security.crypto.cert.X509ExtensionSet getExtensions()
Returns the extensions field of this object.

setExtensions

public void setExtensions(oracle.security.crypto.cert.X509ExtensionSet ext)
Sets the extensions field of this object.

equals

public boolean equals(java.lang.Object o)
Returns true if this object is "equal to" another object.
Overrides:
equals in class java.lang.Object
Parameters:
o - The other object.

toString

public java.lang.String toString()
Returns a string representation of this object.
Overrides:
toString in class java.lang.Object

parseMessage

protected void parseMessage(byte[] data)
                     throws java.io.IOException
Specified by:
parseMessage in class TSPMessage
Throws:
java.io.IOException

getEncoded

protected byte[] getEncoded()
                     throws java.io.IOException
Specified by:
getEncoded in class TSPMessage
Throws:
java.io.IOException

Skip navigation links

Oracle Fusion Middleware PKI SDK TSP Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10677-05


Copyright © 2005, 2013, Oracle. All rights reserved.