FileDocCategorySizeDatePackage
AuthorityInformationAccess.javaAPI DocAndroid 1.5 API2607Wed May 06 22:41:06 BST 2009org.bouncycastle.asn1.x509

AuthorityInformationAccess

public class AuthorityInformationAccess extends org.bouncycastle.asn1.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
private AccessDescription[]
descriptions
Constructors Summary
public AuthorityInformationAccess(org.bouncycastle.asn1.ASN1Sequence seq)

        descriptions = new AccessDescription[seq.size()];
        
        for (int i = 0; i != seq.size(); i++)
        {
            descriptions[i] = AccessDescription.getInstance(seq.getObjectAt(i));
        }
    
public AuthorityInformationAccess(org.bouncycastle.asn1.DERObjectIdentifier oid, GeneralName location)
create an AuthorityInformationAccess with the oid and location provided.

        descriptions = new AccessDescription[1];
        
        descriptions[0] = new AccessDescription(oid, location);
    
Methods Summary
public AccessDescription[]getAccessDescriptions()

return
the access descriptions contained in this object.

        return descriptions;
    
public static 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 org.bouncycastle.asn1.DERObjecttoASN1Object()

        ASN1EncodableVector vec = new ASN1EncodableVector();
        
        for (int i = 0; i != descriptions.length; i++)
        {
            vec.add(descriptions[i]);
        }
        
        return new DERSequence(vec);
    
public java.lang.StringtoString()

        return ("AuthorityInformationAccess: Oid(" + this.descriptions[0].getAccessMethod().getId() + ")");