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

IssuingDistributionPoint

public class IssuingDistributionPoint extends ExtensionValue
CRL's Issuing Distribution Point Extension (OID = 2.5.29.28).
id-ce-issuingDistributionPoint OBJECT IDENTIFIER ::= { id-ce 28 }

issuingDistributionPoint ::= SEQUENCE {
distributionPoint [0] DistributionPointName OPTIONAL,
onlyContainsUserCerts [1] BOOLEAN DEFAULT FALSE,
onlyContainsCACerts [2] BOOLEAN DEFAULT FALSE,
onlySomeReasons [3] ReasonFlags OPTIONAL,
indirectCRL [4] BOOLEAN DEFAULT FALSE,
onlyContainsAttributeCerts [5] BOOLEAN DEFAULT FALSE
}
(as specified in RFC 3280 http://www.ietf.org/rfc/rfc3280.txt)

Fields Summary
private DistributionPointName
distributionPoint
private boolean
onlyContainsUserCerts
private boolean
onlyContainsCACerts
private ReasonFlags
onlySomeReasons
private boolean
indirectCRL
private boolean
onlyContainsAttributeCerts
public static org.apache.harmony.security.asn1.ASN1Type
ASN1
ASN.1 Encoder/Decoder.
Constructors Summary
public IssuingDistributionPoint(DistributionPointName distributionPoint, ReasonFlags onlySomeReasons)
Constructs the object on the base of its distributionPoint and onlySomeReasons fields values.


                      
      
              
        this.distributionPoint = distributionPoint;
        this.onlySomeReasons = onlySomeReasons;
    
Methods Summary
public static org.apache.harmony.security.x509.IssuingDistributionPointdecode(byte[] encoding)
Creates the extension object on the base of its encoded form.

        IssuingDistributionPoint idp =
            (IssuingDistributionPoint) ASN1.decode(encoding);
        idp.encoding = encoding;
        return idp;
    
public voiddumpValue(java.lang.StringBuffer buffer, java.lang.String prefix)
Places the string representation of extension value into the StringBuffer object.

        buffer.append(prefix).append("Issuing Distribution Point: [\n"); //$NON-NLS-1$
        if (distributionPoint != null) {
            distributionPoint.dumpValue(buffer, "  " + prefix); //$NON-NLS-1$
        }
        buffer.append(prefix).append("  onlyContainsUserCerts: ") //$NON-NLS-1$
            .append(onlyContainsUserCerts).append('\n");
        buffer.append(prefix).append("  onlyContainsCACerts: ") //$NON-NLS-1$
            .append(onlyContainsCACerts).append('\n");
        if (onlySomeReasons != null) {
            onlySomeReasons.dumpValue(buffer, prefix + "  "); //$NON-NLS-1$
        }
        buffer.append(prefix).append("  indirectCRL: ") //$NON-NLS-1$
            .append(indirectCRL).append('\n");
        buffer.append(prefix).append("  onlyContainsAttributeCerts: ") //$NON-NLS-1$
            .append(onlyContainsAttributeCerts).append('\n");
    
public DistributionPointNamegetDistributionPoint()
Returns value of distributionPoint field of the structure.

        return distributionPoint;
    
public byte[]getEncoded()
Returns ASN.1 encoded form of this X.509 IssuingDistributionPoint value.

return
a byte array containing ASN.1 encoded form.

        if (encoding == null) {
            encoding = ASN1.encode(this);
        }
        return encoding;
    
public booleangetIndirectCRL()
Returns value of indirectCRL field of the structure.

        return indirectCRL;
    
public booleangetOnlyContainsAttributeCerts()
Returns value of onlyContainsAttributeCerts field of the structure.

        return onlyContainsAttributeCerts;
    
public booleangetOnlyContainsCACerts()
Returns value of onlyContainsCACerts field of the structure.

        return onlyContainsCACerts;
    
public booleangetOnlyContainsUserCerts()
Returns value of onlyContainsUserCerts field of the structure.

        return onlyContainsUserCerts;
    
public ReasonFlagsgetOnlySomeReasons()
Returns value of onlySomeReasons field of the structure.

        return onlySomeReasons;
    
public voidsetIndirectCRL(boolean indirectCRL)
Sets the value of indirectCRL field of the structure.

        this.indirectCRL = indirectCRL;
    
public voidsetOnlyContainsAttributeCerts(boolean onlyContainsAttributeCerts)
Sets the value of onlyContainsAttributeCerts field of the structure.

        this.onlyContainsAttributeCerts = onlyContainsAttributeCerts;
    
public voidsetOnlyContainsCACerts(boolean onlyContainsCACerts)
Sets the value of onlyContainsCACerts field of the structure.

        this.onlyContainsCACerts = onlyContainsCACerts;
    
public voidsetOnlyContainsUserCerts(boolean onlyContainsUserCerts)
Sets the value of onlyContainsUserCerts field of the structure.

        this.onlyContainsUserCerts = onlyContainsUserCerts;