Top Description Fields Constructors Methods
org.bouncycastle.dvcs

public Class DVCSRequestInfo

extends Object
Class Inheritance
Imports
java.math.BigInteger, java.util.Date, org.bouncycastle.asn1.dvcs.DVCSRequestInformation, .DVCSTime, org.bouncycastle.asn1.x509.GeneralNames, .PolicyInformation, org.bouncycastle.tsp.TimeStampToken, org.bouncycastle.util.Arrays

Information piece of DVCS requests. It is common for all types of DVCS requests.

Field Summary

Modifier and TypeField and Description
private DVCSRequestInformation

Constructor Summary

AccessConstructor and Description
public
DVCSRequestInfo(byte[]
a byte array holding the encoding of a DVCSRequestInformation structure.
in
)

Constructs DVCRequestInfo from byte array (DER encoded DVCSRequestInformation).

public
DVCSRequestInfo(DVCSRequestInformation
a DVCSRequestInformation to populate this object with.
data
)

Constructs DVCRequestInfo from DVCSRequestInformation ASN.1 structure.

Method Summary

Modifier and TypeMethod and Description
private static boolean
public GeneralNames

Returns:

the DVCS dataLocations object, or null if not set.
getDataLocations
()

Get data locations, where the copy of request Data can be obtained.

public GeneralNames

Returns:

the DVCS names object, or null if not set.
getDVCSNames
()

Get names of DVCS servers.

public BigInteger

Returns:

nonce value, or null if it is not set.
getNonce
()

Get nonce if it is set.

public GeneralNames

Returns:

the requesting entity, or null.
getRequester
()

Get names of requesting entity, if set.

public PolicyInformation

Returns:

policy identifier or null, if any policy is acceptable.
getRequestPolicy
()

Get policy, under which the validation is requested.

public Date

Returns:

time of request, or null if it is not set.
getRequestTime
()

Get request generation time if it is set.

public int

Returns:

one of CPD, VSD, VPKC, CCPD (see constants).
getServiceType
()

Get requested service type.

public int

Returns:

the version number of the request.
getVersion
()

Get DVCS version of request.

public DVCSRequestInformation

Returns:

a DVCSRequestInformation object.
toASN1Structure
()

Converts to corresponding ASN.1 structure (DVCSRequestInformation).

public static boolean

Returns:

true if server's requestInfo matches client's requestInfo
validate
(DVCSRequestInfo
- DVCRequestInfo of DVCRequest
requestInfo
,
DVCSRequestInfo
- DVCRequestInfo of DVCResponse
responseInfo
)

Compares two DVCRequestInfo structures: one from DVCRequest, and one from DVCResponse.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

databack to summary
private DVCSRequestInformation data

Constructor Detail

DVCSRequestInfoback to summary
public DVCSRequestInfo(byte[] in)

Constructs DVCRequestInfo from byte array (DER encoded DVCSRequestInformation).

Parameters
in:byte[]

a byte array holding the encoding of a DVCSRequestInformation structure.

DVCSRequestInfoback to summary
public DVCSRequestInfo(DVCSRequestInformation data)

Constructs DVCRequestInfo from DVCSRequestInformation ASN.1 structure.

Parameters
data:DVCSRequestInformation

a DVCSRequestInformation to populate this object with.

Method Detail

clientEqualsServerback to summary
private static boolean clientEqualsServer(Object client, Object server)
getDataLocationsback to summary
public GeneralNames getDataLocations()

Get data locations, where the copy of request Data can be obtained.

Note

the exact meaning of field is up to applications.

Note

this field can be set by DVCS.

Returns:GeneralNames

the DVCS dataLocations object, or null if not set.

getDVCSNamesback to summary
public GeneralNames getDVCSNames()

Get names of DVCS servers.

Note

this field can be set by DVCS.

Returns:GeneralNames

the DVCS names object, or null if not set.

getNonceback to summary
public BigInteger getNonce()

Get nonce if it is set.

Note

this field can be set (if not present) or extended (if present) by DVCS.

Returns:BigInteger

nonce value, or null if it is not set.

getRequesterback to summary
public GeneralNames getRequester()

Get names of requesting entity, if set.

Returns:GeneralNames

the requesting entity, or null.

getRequestPolicyback to summary
public PolicyInformation getRequestPolicy()

Get policy, under which the validation is requested.

Returns:PolicyInformation

policy identifier or null, if any policy is acceptable.

getRequestTimeback to summary
public Date getRequestTime() throws DVCSParsingException

Get request generation time if it is set.

Returns:Date

time of request, or null if it is not set.

Exceptions
DVCSParsingException:
if a request time is present but cannot be extracted.
getServiceTypeback to summary
public int getServiceType()

Get requested service type.

Returns:int

one of CPD, VSD, VPKC, CCPD (see constants).

getVersionback to summary
public int getVersion()

Get DVCS version of request.

Returns:int

the version number of the request.

toASN1Structureback to summary
public DVCSRequestInformation toASN1Structure()

Converts to corresponding ASN.1 structure (DVCSRequestInformation).

Returns:DVCSRequestInformation

a DVCSRequestInformation object.

validateback to summary
public static boolean validate(DVCSRequestInfo requestInfo, DVCSRequestInfo responseInfo)

Compares two DVCRequestInfo structures: one from DVCRequest, and one from DVCResponse. This function implements RFC 3029, 9.1 checks of reqInfo.

Parameters
requestInfo:DVCSRequestInfo

- DVCRequestInfo of DVCRequest

responseInfo:DVCSRequestInfo

- DVCRequestInfo of DVCResponse

Returns:boolean

true if server's requestInfo matches client's requestInfo