public class V1Form extends java.lang.Object implements AttCertIssuer
V1Form.
The
Internet Attribute Certificate Profile for Authorization
specifies the V1Form type as TO BE USED option for
identifying the issuer of
an attribute certificate (entity who signs the attribute certificate):
AttCertIssuer ::= CHOICE {
v1Form GeneralNames, -- v1 or v2
v2Form [0] V2Form -- v2 only
}
Attribute certifcates conforming to the Internet Attribute
Certificate Profile for Authorization presented in draft-ietf-pkix-ac509prof-06.txt
are not allowed to use the V2Form choice
for representing the issuer. They must use the v1Form choice, which
must contain one and only one GeneralName, which must contain a non-
empty distinguished name in the directoryName field. This means that
all AC issuers must have non-empty distinguished names.
AttributeCertificate,
IssuerSerial,
ObjectDigestInfo,
AlgorithmID,
V2FormV1_FORM, V2_FORM| Constructor and Description |
|---|
V1Form(ASN1Object obj)
Creates a V1Form from its ASN.1 representation.
|
V1Form(GeneralNames generalNames)
Creates a V1Form from the given GeneralNames.
|
V1Form(Name issuerName)
Creates a V1Form for the given issuer name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes a V1Form from its ASN.1 representation.
|
boolean |
equals(java.lang.Object obj)
Compares this
V1Form to the specified object. |
GeneralNames |
getGeneralNames()
Gets the GeneralNames of this V1Form.
|
int |
getVForm()
Returns 1 (v1Form -- the version this AttcertIssuer represents).
|
int |
hashCode()
Returns a hashcode for this V1Form.
|
boolean |
isV1FormFor(Name issuerName)
Checks if this V1Form represents the given issuerName.
|
ASN1Object |
toASN1Object()
Returns this V1Form as ASN1Object.
|
java.lang.String |
toString()
Returns a string giving some information about this
V1Form object. |
public V1Form(GeneralNames generalNames)
generalNames - the GeneralNames identifying the AC issuerpublic V1Form(Name issuerName)
A GeneralName for the given directoryName is internally created according to the requirements of draft-ietf-pkix-ac509prof-06.txt: "Conforming ACs must contain one and only one GeneralName, which must contain a non-empty distinguished name in the directoryName field. This means that all AC issuers must have non-empty distinguished names".
issuerNames - the name of the AC issuerpublic V1Form(ASN1Object obj) throws CodingException
obj - the V1Form as ASN1ObjectCodingException - if an decoding/parsing error occurspublic GeneralNames getGeneralNames()
public ASN1Object toASN1Object()
toASN1Object in interface AttCertIssuerpublic void decode(ASN1Object obj) throws CodingException
decode in interface AttCertIssuerobj - the V1Form as ASN1ObjectCodingException - if an decoding/parsing error occurspublic boolean equals(java.lang.Object obj)
V1Form to the specified object.equals in interface AttCertIssuerequals in class java.lang.Objectobj - the object to compare this V1Form
against.true, if the given object is equal to this
V1Form,
false otherwisepublic boolean isV1FormFor(Name issuerName)
true if this is a V1Form for the given
issuer name, false if notpublic int hashCode()
hashCode in interface AttCertIssuerhashCode in class java.lang.Objectpublic int getVForm()
getVForm in interface AttCertIssuerpublic java.lang.String toString()
V1Form object.toString in interface AttCertIssuertoString in class java.lang.Object