public class TimeStampRequest
extends java.lang.Object
implements java.security.cert.X509Extension
| Modifier and Type | Field and Description |
|---|---|
(package private) TimeStampReq |
req |
| Constructor and Description |
|---|
TimeStampRequest(byte[] req)
Create a TimeStampRequest from the past in byte array.
|
TimeStampRequest(java.io.InputStream in)
Create a TimeStampRequest from the past in input stream.
|
TimeStampRequest(TimeStampReq req) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCertReq() |
java.util.Set |
getCriticalExtensionOIDs() |
byte[] |
getEncoded()
return the ASN.1 encoded representation of this object.
|
private java.util.Set |
getExtensionOIDS(boolean critical) |
(package private) X509Extensions |
getExtensions() |
byte[] |
getExtensionValue(java.lang.String oid) |
java.lang.String |
getMessageImprintAlgOID() |
byte[] |
getMessageImprintDigest() |
java.math.BigInteger |
getNonce() |
java.util.Set |
getNonCriticalExtensionOIDs() |
java.lang.String |
getReqPolicy() |
int |
getVersion() |
boolean |
hasUnsupportedCriticalExtension() |
void |
validate(java.util.Set algorithms,
java.util.Set policies,
java.util.Set extensions,
java.lang.String provider)
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.
|
TimeStampReq req
public TimeStampRequest(TimeStampReq req)
public TimeStampRequest(byte[] req)
throws java.io.IOException
req - byte array containing the request.java.io.IOException - if the request is malformed.public TimeStampRequest(java.io.InputStream in)
throws java.io.IOException
in - input stream containing the request.java.io.IOException - if the request is malformed.public int getVersion()
public java.lang.String getMessageImprintAlgOID()
public byte[] getMessageImprintDigest()
public java.lang.String getReqPolicy()
public java.math.BigInteger getNonce()
public boolean getCertReq()
public void validate(java.util.Set algorithms,
java.util.Set policies,
java.util.Set extensions,
java.lang.String provider)
throws TSPException,
java.security.NoSuchProviderException
algorithms - a set of String OIDS giving accepted algorithms.policies - if non-null a set of policies we are willing to sign under.extensions - if non-null a set of extensions we are willing to accept.provider - the provider to confirm the digest size against.TSPException - if the request is invalid, or processing fails.java.security.NoSuchProviderExceptionpublic byte[] getEncoded()
throws java.io.IOException
java.io.IOExceptionX509Extensions getExtensions()
public byte[] getExtensionValue(java.lang.String oid)
getExtensionValue in interface java.security.cert.X509Extensionprivate java.util.Set getExtensionOIDS(boolean critical)
public java.util.Set getNonCriticalExtensionOIDs()
getNonCriticalExtensionOIDs in interface java.security.cert.X509Extensionpublic java.util.Set getCriticalExtensionOIDs()
getCriticalExtensionOIDs in interface java.security.cert.X509Extensionpublic boolean hasUnsupportedCriticalExtension()
hasUnsupportedCriticalExtension in interface java.security.cert.X509ExtensionCopyright © 1998-2014 Gamma Technologies. All Rights Reserved.