public class DVCSRequestInfo
extends java.lang.Object
Constructor | Description |
---|---|
DVCSRequestInfo(byte[] in) |
Constructs DVCRequestInfo from byte array (DER encoded DVCSRequestInformation).
|
DVCSRequestInfo(org.bouncycastle.asn1.dvcs.DVCSRequestInformation data) |
Constructs DVCRequestInfo from DVCSRequestInformation ASN.1 structure.
|
Modifier and Type | Method | Description |
---|---|---|
org.bouncycastle.asn1.x509.GeneralNames |
getDataLocations() |
Get data locations, where the copy of request Data can be obtained.
|
org.bouncycastle.asn1.x509.GeneralNames |
getDVCSNames() |
Get names of DVCS servers.
|
java.math.BigInteger |
getNonce() |
Get nonce if it is set.
|
org.bouncycastle.asn1.x509.GeneralNames |
getRequester() |
Get names of requesting entity, if set.
|
org.bouncycastle.asn1.x509.PolicyInformation |
getRequestPolicy() |
Get policy, under which the validation is requested.
|
java.util.Date |
getRequestTime() |
Get request generation time if it is set.
|
int |
getServiceType() |
Get requested service type.
|
int |
getVersion() |
Get DVCS version of request.
|
org.bouncycastle.asn1.dvcs.DVCSRequestInformation |
toASN1Structure() |
Converts to corresponding ASN.1 structure (DVCSRequestInformation).
|
static boolean |
validate(DVCSRequestInfo requestInfo,
DVCSRequestInfo responseInfo) |
Compares two DVCRequestInfo structures: one from DVCRequest, and one from DVCResponse.
|
public DVCSRequestInfo(byte[] in)
in
- a byte array holding the encoding of a DVCSRequestInformation structure.public DVCSRequestInfo(org.bouncycastle.asn1.dvcs.DVCSRequestInformation data)
data
- a DVCSRequestInformation to populate this object with.public org.bouncycastle.asn1.dvcs.DVCSRequestInformation toASN1Structure()
public int getVersion()
public int getServiceType()
public java.math.BigInteger getNonce()
public java.util.Date getRequestTime() throws DVCSParsingException
DVCSParsingException
- if a request time is present but cannot be extracted.public org.bouncycastle.asn1.x509.GeneralNames getRequester()
public org.bouncycastle.asn1.x509.PolicyInformation getRequestPolicy()
public org.bouncycastle.asn1.x509.GeneralNames getDVCSNames()
public org.bouncycastle.asn1.x509.GeneralNames getDataLocations()
public static boolean validate(DVCSRequestInfo requestInfo, DVCSRequestInfo responseInfo)
requestInfo
- - DVCRequestInfo of DVCRequestresponseInfo
- - DVCRequestInfo of DVCResponse