FileDocCategorySizeDatePackage
AuthorityInformationAccess.javaAPI DocAzureus 3.0.3.42479Tue Jun 08 05:12:56 BST 2004org.bouncycastle.asn1.x509

AuthorityInformationAccess

public class AuthorityInformationAccess extends ASN1Encodable
The AuthorityInformationAccess object.
id-pe-authorityInfoAccess OBJECT IDENTIFIER ::= { id-pe 1 }

AuthorityInfoAccessSyntax ::=
SEQUENCE SIZE (1..MAX) OF AccessDescription
AccessDescription ::= SEQUENCE {
accessMethod OBJECT IDENTIFIER,
accessLocation GeneralName }

id-ad OBJECT IDENTIFIER ::= { id-pkix 48 }
id-ad-caIssuers OBJECT IDENTIFIER ::= { id-ad 2 }
id-ad-ocsp OBJECT IDENTIFIER ::= { id-ad 1 }

Fields Summary
DERObjectIdentifier
accessMethod
GeneralName
accessLocation
Constructors Summary
public AuthorityInformationAccess(ASN1Sequence seq)

        Enumeration     e = seq.getObjects();

        if (e.hasMoreElements())
        {
            DERSequence vec= (DERSequence)e.nextElement();
            if (vec.size() != 2) 
            {
                throw new IllegalArgumentException("wrong number of elements in inner sequence");
            }
            accessMethod = (DERObjectIdentifier)vec.getObjectAt(0);
            accessLocation = (GeneralName)vec.getObjectAt(1);
        }
    
public AuthorityInformationAccess(DERObjectIdentifier oid, GeneralName location)
create an AuthorityInformationAccess with the oid and location provided.

        accessMethod = oid;
        accessLocation = location;
    
Methods Summary
public org.bouncycastle.asn1.x509.AuthorityInformationAccessgetInstance(java.lang.Object obj)


      
          
    
        if (obj instanceof AuthorityInformationAccess)
        {
            return (AuthorityInformationAccess)obj;
        }
        else if (obj instanceof ASN1Sequence)
        {
            return new AuthorityInformationAccess((ASN1Sequence)obj);
        }

        throw new IllegalArgumentException("unknown object in factory");
    
public DERObjecttoASN1Object()

        ASN1EncodableVector accessDescription  = new ASN1EncodableVector();
        accessDescription.add(accessMethod);
        accessDescription.add(accessLocation);
        ASN1EncodableVector vec = new ASN1EncodableVector();
        vec.add(new DERSequence(accessDescription));
        return new DERSequence(vec);
    
public java.lang.StringtoString()

        return ("AuthorityInformationAccess: Oid(" + this.accessMethod.getId() + ")");