public class DVCSRequestInfo extends Object
Constructor and Description |
---|
DVCSRequestInfo(byte[] in)
Constructs DVCRequestInfo from byte array (DER encoded DVCSRequestInformation).
|
DVCSRequestInfo(DVCSRequestInformation data)
Constructs DVCRequestInfo from DVCSRequestInformation ASN.1 structure.
|
Modifier and Type | Method and Description |
---|---|
GeneralNames |
getDataLocations()
Get data locations, where the copy of request Data can be obtained.
|
GeneralNames |
getDVCSNames()
Get names of DVCS servers.
|
BigInteger |
getNonce()
Get nonce if it is set.
|
GeneralNames |
getRequester()
Get names of requesting entity, if set.
|
PolicyInformation |
getRequestPolicy()
Get policy, under which the validation is requested.
|
Date |
getRequestTime()
Get request generation time if it is set.
|
int |
getServiceType()
Get requested service type.
|
int |
getVersion()
Get DVCS version of request.
|
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(DVCSRequestInformation data)
data
- a DVCSRequestInformation to populate this object with.public DVCSRequestInformation toASN1Structure()
public int getVersion()
public int getServiceType()
public BigInteger getNonce()
public Date getRequestTime() throws DVCSParsingException
DVCSParsingException
- if a request time is present but cannot be extracted.public GeneralNames getRequester()
public PolicyInformation getRequestPolicy()
public GeneralNames getDVCSNames()
public GeneralNames getDataLocations()
public static boolean validate(DVCSRequestInfo requestInfo, DVCSRequestInfo responseInfo)
requestInfo
- - DVCRequestInfo of DVCRequestresponseInfo
- - DVCRequestInfo of DVCResponseCopyright © 2021 BouncyCastle.org. All rights reserved.