public interface AttCertIssuer
The
Internet Attribute Certificate Profile for Authorization
specifies the AttCertIssuer 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:
V2Form ::= SEQUENCE {
issuerName GeneralNames OPTIONAL,
baseCertificateID [0] IssuerSerial OPTIONAL,
objectDigestInfo [1] ObjectDigestInfo OPTIONAL
-- at least one of issuerName, baseCertificateID
-- or objectDigestInfo MUST be present
}
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:
Use class GeneralNames for
creating a V1Form attCertIssuer holding
a directoryName to be set as
the issuer of an AttributeCertificate:
Name issuerName = ...; V1Form v1Form = new V1Form(issuerName); attributeCertificate.setIssuer(v1Form);
AttributeCertificate,
V1Form,
V2Form| Modifier and Type | Field and Description |
|---|---|
static int |
V1_FORM
Attribute certificate issuer representation v1Form (1).
|
static int |
V2_FORM
Attribute certificate issuer representation v2Form (2).
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an AttCertIssuer from its ASN.1 representasion.
|
boolean |
equals(java.lang.Object obj)
Compares this
AttCertIssuer to the specified object. |
int |
getVForm()
Returns the version this AttCertIssuer represents
-- either v1Form (1) or v2Form (2).
|
int |
hashCode()
Returns a hashcode for this AttCertIssuer.
|
ASN1Object |
toASN1Object()
Returns this AttCertIssuer as ASN1Object.
|
java.lang.String |
toString()
Returns a string giving some information about this
AttCertIssuer object. |
static final int V1_FORM
GeneralNames.static final int V2_FORM
V2Form. Attribute certificates 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.int getVForm()
boolean equals(java.lang.Object obj)
AttCertIssuer to the specified object.equals in class java.lang.Objectobj - the object to compare this AttCertIssuer
against.true, if the given object is equal to this
AttCertIssuer,
AttCertIssuer otherwiseint hashCode()
hashCode in class java.lang.Objectvoid decode(ASN1Object obj) throws CodingException
obj - the AttCertIssuer as ASN1ObjectCodingExceptionASN1Object toASN1Object()
java.lang.String toString()
AttCertIssuer object.toString in class java.lang.Object