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

DistributionPoint

public class DistributionPoint extends Object
The class encapsulates the ASN.1 DER encoding/decoding work with the DistributionPoint 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 DistributionPointName
distributionPoint
private final ReasonFlags
reasons
private final GeneralNames
cRLIssuer
public static final org.apache.harmony.security.asn1.ASN1Sequence
ASN1
Custom X.509 decoder.
Constructors Summary
public DistributionPoint()

        distributionPoint = null;
        reasons = null;
        cRLIssuer = null;
    
public DistributionPoint(DistributionPointName distributionPoint, ReasonFlags reasons, GeneralNames cRLIssuer)

        if ((reasons != null) && (distributionPoint == null) 
                && (cRLIssuer == null)) {
            throw new IllegalArgumentException(
                    Messages.getString("security.17F")); //$NON-NLS-1$
        }
        this.distributionPoint = distributionPoint;
        this.reasons = reasons;
        this.cRLIssuer = cRLIssuer;
    
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: [\n"); //$NON-NLS-1$
        if (distributionPoint != null) {
            distributionPoint.dumpValue(buffer, prefix + "  "); //$NON-NLS-1$
        }
        if (reasons != null) {
            reasons.dumpValue(buffer, prefix + "  "); //$NON-NLS-1$
        }
        if (cRLIssuer != null) {
            buffer.append(prefix);
            buffer.append("  CRL Issuer: [\n"); //$NON-NLS-1$
            cRLIssuer.dumpValue(buffer, prefix + "    "); //$NON-NLS-1$
            buffer.append(prefix);
            buffer.append("  ]\n"); //$NON-NLS-1$
        }
        buffer.append(prefix);
        buffer.append("]\n"); //$NON-NLS-1$