FileDocCategorySizeDatePackage
GeneralSubtrees.javaAPI DocAndroid 1.5 API3576Wed May 06 22:41:06 BST 2009org.apache.harmony.security.x509

GeneralSubtrees

public class GeneralSubtrees extends Object
The class encapsulates the ASN.1 DER encoding/decoding work with the GeneralSubtrees structure which is a part of X.509 certificate: (as specified in RFC 3280 - Internet X.509 Public Key Infrastructure. Certificate and Certificate Revocation List (CRL) Profile. http://www.ietf.org/rfc/rfc3280.txt):
GeneralSubtrees ::= SEQUENCE SIZE (1..MAX) OF GeneralSubtree
see
org.apache.harmony.security.x509.NameConstraints
see
org.apache.harmony.security.x509.GeneralSubtree

Fields Summary
private List
generalSubtrees
private byte[]
encoding
public static final org.apache.harmony.security.asn1.ASN1Type
ASN1
ASN.1 DER X.509 GeneralSubtrees encoder/decoder class.
Constructors Summary
public GeneralSubtrees()
Constructs an object representing the value of GeneralSubtrees.

public GeneralSubtrees(List generalSubtrees)
TODO

param
generalSubtrees: List

        // TODO: the size should not be less than one
        this.generalSubtrees = generalSubtrees;
    
Methods Summary
public org.apache.harmony.security.x509.GeneralSubtreesaddSubtree(GeneralSubtree subtree)
TODO

param
subtree: GeneralSubtree
return

        encoding = null;
        if (generalSubtrees == null) {
            generalSubtrees = new ArrayList();
        }
        generalSubtrees.add(subtree);
        return this;
    
public byte[]getEncoded()
Returns ASN.1 encoded form of this X.509 AlgorithmIdentifier value.

return
a byte array containing ASN.1 encode form.

        if (encoding == null) {
            encoding = ASN1.encode(this);
        }
        return encoding;
    
public java.util.ListgetSubtrees()
Returns the list of values of subtrees.

return
subtrees

        return generalSubtrees;