|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents an attribute certificate issuer.
The
Internet Attribute Certificate Profile for Authorization
(RFC 3281) specifies the AttCertIssuer
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 3281 are not allowed to use the
V1Form
choice
for representing the issuer, they must use the V2Form
choice:
ACs conforming to this profile MUST use the v2Form choice, which MUST contain one and only one GeneralName in the issuerName, which MUST contain a non-empty distinguished name in the directoryName field. This means that all AC issuers MUST have non-empty distinguished names. ACs conforming to this profile MUST omit the baseCertificateID and objectDigestInfo fields. Part of the reason for the use of the v2Form containing only an issuerName is that it means that the AC issuer does not have to know which PKC the AC verifier will use for it (the AC issuer). Using the baseCertificateID field to reference the AC issuer would mean that the AC verifier would have to trust the PKC that the AC issuer chose (for itself) at AC creation time.Use class
Name
for
creating a V2Form
attCertIssuer holding
a directoryName
to be set as
the issuer of an AttributeCertificate
:
Name issuerName = ...; V2Form v2Form = new V2Form(issuerName); attributeCertificate.setIssuer(v2Form);
AttributeCertificate
,
V1Form
,
V2Form
Field Summary | |
static int |
V1_FORM
Attribute certificate issuer representation v1Form (1). |
static int |
V2_FORM
Attribute certificate issuer representation v2Form (2). |
Method Summary | |
void |
decode(ASN1Object obj)
Decodes an AttCertIssuer from its ASN.1 representasion. |
boolean |
equals(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. |
String |
toString()
Returns a string giving some information about this AttCertIssuer object. |
Field Detail |
public static final int V1_FORM
GeneralNames
.public static final int V2_FORM
V2Form
.Method Detail |
public int getVForm()
public boolean equals(Object obj)
AttCertIssuer
to the specified object.equals
in class Object
obj
- the object to compare this AttCertIssuer
against.true
, if the given object is equal to this
AttCertIssuer
,
AttCertIssuer
otherwisepublic int hashCode()
hashCode
in class Object
public void decode(ASN1Object obj) throws CodingException
obj
- the AttCertIssuer as ASN1Objectpublic ASN1Object toASN1Object()
public String toString()
AttCertIssuer
object.toString
in class Object
|
This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |