public class TSPTimeStampReq extends TSPMessage
Constructor and Description |
---|
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, X509ExtensionSet extensions) |
TSPTimeStampReq(MessageImprint mi, TSAPolicyID reqPolicy, byte[] nonce, boolean certReq, X509ExtensionSet extensions)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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() |
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(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.
|
input, length, output
public TSPTimeStampReq()
public TSPTimeStampReq(MessageImprint mi)
mi
- The MessageImprint object.public TSPTimeStampReq(MessageImprint mi, TSAPolicyID reqPolicy, byte[] nonce, boolean certReq, X509ExtensionSet extensions)
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.public TSPTimeStampReq(MessageImprint mi, TSAPolicyID reqPolicy, java.math.BigInteger nonce, boolean certReq, X509ExtensionSet extensions)
public TSPTimeStampReq(java.io.InputStream is) throws java.io.IOException
is
- The input stream.If
- an I/O error occurs.java.io.IOException
public int getVersion()
public MessageImprint getMessageImprint()
getMessageImprint
in class TSPMessage
public void setMessageImprint(MessageImprint mi)
mi
- The MessageImprint.public TSAPolicyID getReqPolicy()
public void setReqPolicy(TSAPolicyID id)
TSAPolicyID
- The request policy.public byte[] getNonce()
public java.math.BigInteger getNonceAsBigInteger()
public void setNonce(java.math.BigInteger data)
data
- The noncepublic void setNonce(byte[] data)
data
- deprecated as a part of Bugfix: 5948455public boolean getCertReq()
public void setCertReq(boolean b)
b
- The value.public X509ExtensionSet getExtensions()
public void setExtensions(X509ExtensionSet ext)
public boolean equals(java.lang.Object o)
true
if this object is "equal to" another object.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