public class TimeStampRequest extends Object
Constructor and Description |
---|
TimeStampRequest(byte[] req)
Create a TimeStampRequest from the past in byte array.
|
TimeStampRequest(InputStream in)
Create a TimeStampRequest from the past in input stream.
|
TimeStampRequest(org.bouncycastle.asn1.tsp.TimeStampReq req) |
Modifier and Type | Method and Description |
---|---|
boolean |
getCertReq() |
Set |
getCriticalExtensionOIDs()
Returns a set of ASN1ObjectIdentifiers giving the critical extensions.
|
byte[] |
getEncoded()
return the ASN.1 encoded representation of this object.
|
org.bouncycastle.asn1.x509.Extension |
getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid) |
List |
getExtensionOIDs() |
org.bouncycastle.asn1.ASN1ObjectIdentifier |
getMessageImprintAlgOID() |
byte[] |
getMessageImprintDigest() |
BigInteger |
getNonce() |
Set |
getNonCriticalExtensionOIDs()
Returns a set of ASN1ObjectIdentifiers giving the non-critical extensions.
|
org.bouncycastle.asn1.ASN1ObjectIdentifier |
getReqPolicy() |
int |
getVersion() |
boolean |
hasExtensions() |
void |
validate(Set algorithms,
Set policies,
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 TimeStampRequest(org.bouncycastle.asn1.tsp.TimeStampReq req)
public TimeStampRequest(byte[] req) throws IOException
req
- byte array containing the request.IOException
- if the request is malformed.public TimeStampRequest(InputStream in) throws IOException
in
- input stream containing the request.IOException
- if the request is malformed.public int getVersion()
public org.bouncycastle.asn1.ASN1ObjectIdentifier getMessageImprintAlgOID()
public byte[] getMessageImprintDigest()
public org.bouncycastle.asn1.ASN1ObjectIdentifier getReqPolicy()
public BigInteger getNonce()
public boolean getCertReq()
public void validate(Set algorithms, Set policies, 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 IOException
IOException
public boolean hasExtensions()
public org.bouncycastle.asn1.x509.Extension getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid)
public List getExtensionOIDs()
public Set getNonCriticalExtensionOIDs()
public Set getCriticalExtensionOIDs()
Copyright © 2016 BouncyCastle.org. All rights reserved.