public class V1Form extends java.lang.Object implements AttCertIssuer
V1Form.
The Internet Attribute
Certificate Profile for Authorization (RFC 5755) specifies the
V1Form type as NOT TO BE USED option for identifying the
issuer of an attribute certificate
(entity who signs the attribute certificate):
AttCertIssuer ::= CHOICE {
v1Form GeneralNames, -- MUST NOT be used in this
-- profile
v2Form [0] V2Form -- v2 only
}
Attribute certifcates conforming to the Internet Attribute Certificate
Profile for Authorization presented in RFC 5755 are not allowed to use the
V1Form choice for representing the issuer. They must use the
V2Form choice.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.
|
Name |
getIssuerDN()
Gets the issuer distinguished name, if included in this V1Form
GeneralNames.
|
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.
issuerName - 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 Name getIssuerDN()
null if no dn is included in this
V1Formpublic 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