public class TimeStampRequest
extends java.lang.Object
| Constructor and Description |
|---|
TimeStampRequest(TimeStampReq req) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCertReq() |
java.util.Set |
getCriticalExtensionOIDs()
Returns a set of ASN1ObjectIdentifiers giving the critical extensions.
|
byte[] |
getEncoded()
return the ASN.1 encoded representation of this object.
|
Extension |
getExtension(ASN1ObjectIdentifier oid) |
java.util.List |
getExtensionOIDs() |
ASN1ObjectIdentifier |
getMessageImprintAlgOID() |
byte[] |
getMessageImprintDigest() |
java.math.BigInteger |
getNonce() |
java.util.Set |
getNonCriticalExtensionOIDs()
Returns a set of ASN1ObjectIdentifiers giving the non-critical extensions.
|
ASN1ObjectIdentifier |
getReqPolicy() |
int |
getVersion() |
boolean |
hasExtensions() |
void |
validate(java.util.Set algorithms,
java.util.Set policies,
java.util.Set extensions)
Validate the timestamp request, checking the digest to see if it is of an
accepted type and whether it is of the correct length for the algorithm specified.
|
public int getVersion()
public ASN1ObjectIdentifier getMessageImprintAlgOID()
public byte[] getMessageImprintDigest()
public ASN1ObjectIdentifier getReqPolicy()
public java.math.BigInteger getNonce()
public boolean getCertReq()
public void validate(java.util.Set algorithms,
java.util.Set policies,
java.util.Set extensions)
throws TSPException
algorithms - a set of OIDs giving accepted algorithms.policies - if non-null a set of policies OIDs we are willing to sign under.extensions - if non-null a set of extensions OIDs we are willing to accept.TSPException - if the request is invalid, or processing fails.public byte[] getEncoded()
throws java.io.IOException
java.io.IOExceptionpublic boolean hasExtensions()
public Extension getExtension(ASN1ObjectIdentifier oid)
public java.util.List getExtensionOIDs()
public java.util.Set getNonCriticalExtensionOIDs()
public java.util.Set getCriticalExtensionOIDs()