public class V2Form extends java.lang.Object implements AttCertIssuer
V2Form.
The
Internet Attribute Certificate Profile for Authorization
specifies the V2Form type as a NOT TO BE USED option for
identifying the issuer of
an attribute certificate (entity who signs the attribute certificate):
V2Form ::= SEQUENCE {
issuerName GeneralNames OPTIONAL,
baseCertificateID [0] IssuerSerial OPTIONAL,
objectDigestInfo [1] ObjectDigestInfo OPTIONAL
-- at least one of issuerName, baseCertificateID
-- or objectDigestInfo MUST be present
}
Attribute certifcates conforming to the Internet Attribute
Certificate Profile for Authorization presented in draft-ietf-pkix-ac509prof-06.txt
have to use the V1Form choice for representing
the issuer:
AttCertIssuer ::= CHOICE {
v1Form GeneralNames, -- v1 or v2
v2Form [0] V2Form -- v2 only
}AttributeCertificate,
IssuerSerial,
ObjectDigestInfo,
GeneralNames,
V1FormV1_FORM, V2_FORM| Constructor and Description |
|---|
V2Form(ASN1Object obj)
Creates a V2Form from its ASN.1 representation.
|
V2Form(GeneralNames issuerName,
IssuerSerial baseCertificateID,
ObjectDigestInfo objectDigestInfo)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes a V2Form from its ASN.1 representation.
|
boolean |
equals(java.lang.Object obj)
Compares this
V2Form to the specified object. |
IssuerSerial |
getBaseCertificateID()
Gets the baseCertificateID of this V2Form, if set.
|
GeneralNames |
getIssuerName()
Gets the IssuerName of this V2Form, if set.
|
ObjectDigestInfo |
getObjectDigestInfo()
Gets the objectDigestInfo of this V2Form, if set.
|
int |
getVForm()
Returns 2 (v2Form -- the version this AttcertIssuer represents).
|
int |
hashCode()
Returns a hashcode for this V2Form.
|
ASN1Object |
toASN1Object()
Returns this V2Form as ASN1Object.
|
java.lang.String |
toString()
Returns a string giving some information about this
V2Form object. |
public V2Form(GeneralNames issuerName, IssuerSerial baseCertificateID, ObjectDigestInfo objectDigestInfo)
V2Form object. Use the several
setXXX method for setting the fields of this
V2Form object.public V2Form(ASN1Object obj) throws CodingException
obj - the V2Form as ASN1ObjectCodingException - if an decoding/parsing error occurs or the
the information contained is not appropriate
for a V2Formpublic GeneralNames getIssuerName()
public IssuerSerial getBaseCertificateID()
public ObjectDigestInfo getObjectDigestInfo()
public ASN1Object toASN1Object()
toASN1Object in interface AttCertIssuerpublic void decode(ASN1Object obj) throws CodingException
decode in interface AttCertIssuerobj - the V2Form as ASN1ObjectCodingException - if an decoding/parsing error occurs or the
the information contained is not appropriate
for a V2Formpublic boolean equals(java.lang.Object obj)
V2Form to the specified object.equals in interface AttCertIssuerequals in class java.lang.Objectobj - the object to compare this V2Form
against.true, if the given object is equal to this
V2Form,
false otherwisepublic int hashCode()
hashCode in interface AttCertIssuerhashCode in class java.lang.Objectpublic int getVForm()
getVForm in interface AttCertIssuerpublic java.lang.String toString()
V2Form object.toString in interface AttCertIssuertoString in class java.lang.Object