org.bouncycastle.tsp
public class TimeStampRequest extends Object implements X509Extension
Constructor Summary | |
---|---|
TimeStampRequest(TimeStampReq req) | |
TimeStampRequest(byte[] req)
Create a TimeStampRequest from the past in byte array.
| |
TimeStampRequest(InputStream in)
Create a TimeStampRequest from the past in input stream.
|
Method Summary | |
---|---|
boolean | getCertReq() |
Set | getCriticalExtensionOIDs() |
byte[] | getEncoded()
return the ASN.1 encoded representation of this object. |
byte[] | getExtensionValue(String oid) |
String | getMessageImprintAlgOID() |
byte[] | getMessageImprintDigest() |
BigInteger | getNonce() |
Set | getNonCriticalExtensionOIDs() |
String | getReqPolicy() |
int | getVersion() |
boolean | hasUnsupportedCriticalExtension() |
void | validate(Set algorithms, Set policies, Set extensions, 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.
|
Parameters: req byte array containing the request.
Throws: IOException if the request is malformed.
Parameters: in input stream containing the request.
Throws: IOException if the request is malformed.
Parameters: 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.
Throws: TSPException if the request is invalid, or processing fails.