anon.crypto
Class X509IssuingDistributionPoint

java.lang.Object
  extended by anon.crypto.AbstractX509Extension
      extended by anon.crypto.X509IssuingDistributionPoint

public class X509IssuingDistributionPoint
extends AbstractX509Extension

This class implements the IssuingDistributionPoint extension for X.509-CRLs as specified in RFC 5280.

Author:
Robert Hirschberger
See Also:
http://tools.ietf.org/html/rfc5280

Field Summary
static java.lang.String IDENTIFIER
           
private  org.bouncycastle.asn1.x509.IssuingDistributionPoint m_issuingDistributionPoint
           
 
Constructor Summary
X509IssuingDistributionPoint(boolean a_indirectCRL)
          Creates an new X509IssuingDistributionPoint object with the specified values the CRL contains revoked certificates issued by other CAs
X509IssuingDistributionPoint(org.bouncycastle.asn1.DERSequence a_extension)
          Creates an new X509BasicConstraints object from a BouncyCastle DERSequence
X509IssuingDistributionPoint(org.bouncycastle.asn1.x509.DistributionPointName distributionPoint, boolean onlyContainsUserCerts, boolean onlyContainsCACerts, org.bouncycastle.asn1.x509.ReasonFlags onlySomeReasons, boolean indirectCRL, boolean onlyContainsAttributeCerts)
          Creates an new X509IssuingDistributionPoint object with the specified values
 
Method Summary
private static byte[] createDEROctets(org.bouncycastle.asn1.x509.DistributionPointName distributionPoint, boolean onlyContainsUserCerts, boolean onlyContainsCACerts, org.bouncycastle.asn1.x509.ReasonFlags onlySomeReasons, boolean indirectCRL, boolean onlyContainsAttributeCerts)
          Generates the DEROctets of this extension to hand over to the super class.
private  void createValue()
          Instantiates a new BouncyCastle IssuingDistributionPoint from the DEROctets of this extension.
 org.bouncycastle.asn1.x509.IssuingDistributionPoint getIssuingDistributionPoint()
           
 java.lang.String getName()
          Returns the human-readable name of this extension.
 java.util.Vector getValues()
          This method returns all values of this extension in separated String objects.
 boolean isIndirectCRL()
           
 
Methods inherited from class anon.crypto.AbstractX509Extension
equals, getBCExtension, getDEROctets, getIdentifier, getInstance, hashCode, isCritical, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

IDENTIFIER

public static final java.lang.String IDENTIFIER

m_issuingDistributionPoint

private org.bouncycastle.asn1.x509.IssuingDistributionPoint m_issuingDistributionPoint
Constructor Detail

X509IssuingDistributionPoint

public X509IssuingDistributionPoint(org.bouncycastle.asn1.x509.DistributionPointName distributionPoint,
                                    boolean onlyContainsUserCerts,
                                    boolean onlyContainsCACerts,
                                    org.bouncycastle.asn1.x509.ReasonFlags onlySomeReasons,
                                    boolean indirectCRL,
                                    boolean onlyContainsAttributeCerts)
Creates an new X509IssuingDistributionPoint object with the specified values

Parameters:
distributionPoint - the name of the distribution point
onlyContainsUserCerts - the CRL contains only revoked UserCerts
onlyContainsCACerts - the CRL contains only revoked CA-Certs
onlySomeReasons - the CRL contains only certificates revoked because of SomeReasons
indirectCRL - the CRL contains revoked certificates issued by other CAs
onlyContainsAttributeCerts - the CRL contains only revoked AttributeCerts

X509IssuingDistributionPoint

public X509IssuingDistributionPoint(boolean a_indirectCRL)
Creates an new X509IssuingDistributionPoint object with the specified values the CRL contains revoked certificates issued by other CAs

Parameters:
a_indirectCRL -

X509IssuingDistributionPoint

public X509IssuingDistributionPoint(org.bouncycastle.asn1.DERSequence a_extension)
Creates an new X509BasicConstraints object from a BouncyCastle DERSequence

Parameters:
a_extension - the extions as DERSequence
Method Detail

createValue

private void createValue()
Instantiates a new BouncyCastle IssuingDistributionPoint from the DEROctets of this extension.


createDEROctets

private static byte[] createDEROctets(org.bouncycastle.asn1.x509.DistributionPointName distributionPoint,
                                      boolean onlyContainsUserCerts,
                                      boolean onlyContainsCACerts,
                                      org.bouncycastle.asn1.x509.ReasonFlags onlySomeReasons,
                                      boolean indirectCRL,
                                      boolean onlyContainsAttributeCerts)
Generates the DEROctets of this extension to hand over to the super class.

Parameters:
distributionPoint - the name of the distribution point
onlyContainsUserCerts - the CRL contains only revoked UserCerts
onlyContainsCACerts - the CRL contains only revoked CA-Certs
onlySomeReasons - the CRL contains only certificates revoked because of SomeReasons
indirectCRL - the CRL contains revoked certificates issued by other CAs
onlyContainsAttributeCerts - the CRL contains only revoked AttributeCerts
Returns:
the DEROctets of this extension

getName

public java.lang.String getName()
Description copied from class: AbstractX509Extension
Returns the human-readable name of this extension.

Specified by:
getName in class AbstractX509Extension
Returns:
"IssuingDistributionPoint"

getValues

public java.util.Vector getValues()
Description copied from class: AbstractX509Extension
This method returns all values of this extension in separated String objects. The values should be human readable.

Specified by:
getValues in class AbstractX509Extension
Returns:
all values of this extension

isIndirectCRL

public boolean isIndirectCRL()
Returns:
true if the CRL contains revoked certificates issued by other CAs

getIssuingDistributionPoint

public org.bouncycastle.asn1.x509.IssuingDistributionPoint getIssuingDistributionPoint()
Returns:
the BC IssuingDistributionPoint object represented by this class