|
|||||||||
| 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 two accessMethod OID, id-ad-caIssuers and
id-ad-ocsp.
id-ad-caIssuers may 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.
id-as-ocsp may be used to indicate that revocation information for the certificate
may be obtained by OCSP.
More information can be found in the X.509 Certificate and CRL profile presented in RFC 3280, section 4.2.2.1 "AuthorityInfoAccess".
When creating a AccessDescription, the accessMethod OID and the accessLocation GeneralName has to be specified, e.g.:
GeneralName caCertURL = new GeneralName(GeneralName.uniformResourceIdentifier, "http://test.ca.com/cert/caCert.cer"); AccessDescription ad = new AccessDescription(ObjectID.caIssuers, new GeneralName(caCertURL));or
GeneralName ocspURL = new GeneralName(GeneralName.uniformResourceIdentifier, "http://test.ca.com/ocsp"); AccessDescription ad = new AccessDescription(ObjectID.ocsp, new GeneralName(ocspURL));
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.
|
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 IllegalArgumentException
For instance:
AccessDescription ad = new AccessDescription(ObjectID.caIssuers, new GeneralName(...));
accessMethod - the accessMethod OIDaccessLocation - the accessLocation GeneralNameInvalidArgumentException - if one of the arguments is null
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 ASN1ObjectCodingException - if the object can not be parsed| Method Detail |
public void decode(ASN1Object obj)
throws CodingException
AccessDescription object for parsing
the internal structure.
decode in interface ASN1Typeobj - the AccessDescription as ASN1ObjectCodingException - if the object can not be parsed
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.
toASN1Object in interface ASN1TypeAccessDescription as ASN1Object.public ObjectID getAccessMethod()
null if not setpublic GeneralName getAccessLocation()
null if not set
public void setAccessMethod(ObjectID accessMethod)
throws IllegalArgumentException
the - access method OIDInvalidArgumentException - if the argument is null
public void setAccessLocation(GeneralName accessLocation)
throws IllegalArgumentException
the - access location as GeneralNameInvalidArgumentException - if the argument is nullpublic String toString()
AccessDescription 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 | ||||||||
IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK