|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--iaik.asn1.structures.AccessDescription
This class represents a AccessDescription to be used as parameter for creating a private internet extension of type "Authority Information Access".
ASN.1 definition:
AuthorityInfoAccessSyntax ::=
SEQUENCE SIZE (1..MAX) OF AccessDescription
AccessDescription ::= SEQUENCE {
accessMethod OBJECT IDENTIFIER,
accessLocation GeneralName }
The PKIX profile already has defined one accessMethod OID, id-ad-caIssuers to be used when the additional information lists CAs that have issued certificates superior to the CA that issued the certificate containing this extension. The referenced CA Issuers description is intended to aid certificate users in the selection of a certification path that terminates at a point trusted by the certificate user.
More information can be found in the PKIX internet draft draft-ietf-pkix-ipki-part1-07.txt, section 4.2.2.1 "AuthorityInfoAccess".
When creating a AccessDescription, the accessMethod OID and the accessLocation GeneralName has to be specified, e.g.:
AccessDescription ad = new AccessDescription(ObjectID.caIssuers, new GeneralName(...));
AuthorityInfoAccess| Constructor Summary | |
AccessDescription()
Default constructor. |
|
AccessDescription(ASN1Object obj)
Creates a new AccessDescription from an ASN1Object. |
|
AccessDescription(ObjectID accessMethod,
GeneralName accessLocation)
Creates a new AccessDescription from the given Oid and GeneralName. |
|
| Method Summary | |
void |
decode(ASN1Object obj)
Decodes the given ASN.1 AccessDescription object for parsing
the internal structure. |
GeneralName |
getAccessLocation()
Returns the access location. |
ObjectID |
getAccessMethod()
Returns the access method OID. |
void |
setAccessLocation(GeneralName accessLocation)
Sets the access location. |
void |
setAccessMethod(ObjectID accessMethod)
Sets the access method OID. |
ASN1Object |
toASN1Object()
Returns this AccessDescription as ASN1Object. |
java.lang.String |
toString()
Returns a string giving some information about this AccessDescription object. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public AccessDescription()
public AccessDescription(ObjectID accessMethod,
GeneralName accessLocation)
throws java.lang.IllegalArgumentException
For instance:
AccessDescription ad = new AccessDescription(ObjectID.caIssuers, new GeneralName(...));
accessMethod - the accessMethod OIDaccessLocation - the accessLocation GeneralName
public AccessDescription(ASN1Object obj)
throws CodingException
AccessDescription from an ASN1Object.
The ASN1Object supplied to this constructor represents an
already exisiting AccessDescription object that may
have been created by calling toASN1Object
obj - the AccessDescription as ASN1Object| Method Detail |
public void decode(ASN1Object obj)
throws CodingException
AccessDescription object for parsing
the internal structure.
obj - the AccessDescription as ASN1Object
public ASN1Object toASN1Object()
throws CodingException
AccessDescription as ASN1Object.
The ASN1Object returned by this method may be used as parameter value when
creating a AccessDescription object using the
AccessDescription(ASN1Object obj)
constructor.
AccessDescription as ASN1Object.public ObjectID getAccessMethod()
null if not setpublic GeneralName getAccessLocation()
null if not set
public void setAccessMethod(ObjectID accessMethod)
throws java.lang.IllegalArgumentException
the - access method OID
public void setAccessLocation(GeneralName accessLocation)
throws java.lang.IllegalArgumentException
the - access location as GeneralNamepublic java.lang.String toString()
AccessDescription object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||