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

AccessDescription

public class AccessDescription extends org.bouncycastle.asn1.ASN1Encodable
The AccessDescription object.
AccessDescription ::= SEQUENCE {
accessMethod OBJECT IDENTIFIER,
accessLocation GeneralName }

Fields Summary
public static final org.bouncycastle.asn1.DERObjectIdentifier
id_ad_caIssuers
public static final org.bouncycastle.asn1.DERObjectIdentifier
id_ad_ocsp
org.bouncycastle.asn1.DERObjectIdentifier
accessMethod
GeneralName
accessLocation
Constructors Summary
public AccessDescription(org.bouncycastle.asn1.ASN1Sequence seq)

        if (seq.size() != 2) 
        {
            throw new IllegalArgumentException("wrong number of elements in inner sequence");
        }
        
        accessMethod = DERObjectIdentifier.getInstance(seq.getObjectAt(0));
        accessLocation = GeneralName.getInstance(seq.getObjectAt(1));
    
public AccessDescription(org.bouncycastle.asn1.DERObjectIdentifier oid, GeneralName location)
create an AccessDescription with the oid and location provided.

        accessMethod = oid;
        accessLocation = location;
    
Methods Summary
public GeneralNamegetAccessLocation()

return
the access location

        return accessLocation;
    
public org.bouncycastle.asn1.DERObjectIdentifiergetAccessMethod()

return
the access method.

        return accessMethod;
    
public static org.bouncycastle.asn1.x509.AccessDescriptiongetInstance(java.lang.Object obj)


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

        throw new IllegalArgumentException("unknown object in factory");
    
public org.bouncycastle.asn1.DERObjecttoASN1Object()

        ASN1EncodableVector accessDescription  = new ASN1EncodableVector();
        
        accessDescription.add(accessMethod);
        accessDescription.add(accessLocation);

        return new DERSequence(accessDescription);
    
public java.lang.StringtoString()

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