Top Description Fields Constructors Methods
org.bouncycastle.asn1.dvcs

public Class ServiceType

extends ASN1Object
Class Inheritance
Imports
java.math.BigInteger, org.bouncycastle.asn1.ASN1Enumerated, .ASN1Object, .ASN1Primitive, .ASN1TaggedObject

ServiceType ::= ENUMERATED { cpd(1), vsd(2), cpkc(3), ccpd(4) }

Field Summary

Modifier and TypeField and Description
public static final ServiceType
CCPD

Identifier of CCPD service (Certify Claim of Possession of Data).

public static final ServiceType
CPD

Identifier of CPD service (Certify Possession of Data).

private ASN1Enumerated
public static final ServiceType
VPKC

Identifier of VPKC service (Verify Public Key Certificates (also referred to as CPKC)).

public static final ServiceType
VSD

Identifier of VSD service (Verify Signed Document).

Constructor Summary

AccessConstructor and Description
public
ServiceType(int value)

private

Method Summary

Modifier and TypeMethod and Description
public static ServiceType
public static ServiceType
getInstance(ASN1TaggedObject obj, boolean explicit)

public BigInteger
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

CCPDback to summary
public static final ServiceType CCPD

Identifier of CCPD service (Certify Claim of Possession of Data).

CPDback to summary
public static final ServiceType CPD

Identifier of CPD service (Certify Possession of Data).

valueback to summary
private ASN1Enumerated value
VPKCback to summary
public static final ServiceType VPKC

Identifier of VPKC service (Verify Public Key Certificates (also referred to as CPKC)).

VSDback to summary
public static final ServiceType VSD

Identifier of VSD service (Verify Signed Document).

Constructor Detail

ServiceTypeback to summary
public ServiceType(int value)
ServiceTypeback to summary
private ServiceType(ASN1Enumerated value)

Method Detail

getInstanceback to summary
public static ServiceType getInstance(Object obj)
getInstanceback to summary
public static ServiceType getInstance(ASN1TaggedObject obj, boolean explicit)
getValueback to summary
public BigInteger getValue()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object