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

DistributionPointName

public class DistributionPointName extends Object
The class encapsulates the ASN.1 DER encoding/decoding work with the DistributionPointName structure which is the part of X.509 CRL (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):
CRLDistributionPoints ::= SEQUENCE SIZE (1..MAX) OF DistributionPoint

DistributionPoint ::= SEQUENCE {
distributionPoint [0] DistributionPointName OPTIONAL,
reasons [1] ReasonFlags OPTIONAL,
cRLIssuer [2] GeneralNames OPTIONAL
}

DistributionPointName ::= CHOICE {
fullName [0] GeneralNames,
nameRelativeToCRLIssuer [1] RelativeDistinguishedName
}

ReasonFlags ::= BIT STRING {
unused (0),
keyCompromise (1),
cACompromise (2),
affiliationChanged (3),
superseded (4),
cessationOfOperation (5),
certificateHold (6),
privilegeWithdrawn (7),
aACompromise (8)
}

Fields Summary
private final GeneralNames
fullName
private final org.apache.harmony.security.x501.Name
nameRelativeToCRLIssuer
public static final org.apache.harmony.security.asn1.ASN1Choice
ASN1
Constructors Summary
public DistributionPointName(GeneralNames fullName)

        this.fullName = fullName;
        this.nameRelativeToCRLIssuer = null;
    
public DistributionPointName(org.apache.harmony.security.x501.Name nameRelativeToCRLIssuer)

        this.fullName = null;
        this.nameRelativeToCRLIssuer = nameRelativeToCRLIssuer;
    
Methods Summary
public voiddumpValue(java.lang.StringBuffer buffer, java.lang.String prefix)
Places the string representation of extension value into the StringBuffer object.

        buffer.append(prefix);
        buffer.append("Distribution Point Name: [\n"); //$NON-NLS-1$
        if (fullName != null) {
            fullName.dumpValue(buffer, prefix + "  "); //$NON-NLS-1$
        } else {
            buffer.append(prefix);
            buffer.append("  "); //$NON-NLS-1$
            buffer.append(nameRelativeToCRLIssuer.getName(
                        X500Principal.RFC2253));
        } 
        buffer.append(prefix);
        buffer.append("]\n"); //$NON-NLS-1$