codec.x509.extensions
Class IssuingDistPoint

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--codec.asn1.ASN1AbstractCollection
                          |
                          +--codec.asn1.ASN1Sequence
                                |
                                +--codec.x509.X509Extension
                                      |
                                      +--codec.x509.extensions.IssuingDistPoint
All Implemented Interfaces:
ASN1Collection, ASN1Type, Cloneable, Collection, Externalizable, List, Serializable, X509Extension

public class IssuingDistPoint
extends X509Extension

 IssuingDistPointSyntax ::= SEQUENCE {
 distributionPoint	[0] DistributionPointName OPTIONAL,
 onlyContainsUserCerts	[1] BOOLEAN DEFAULT FALSE,
 onlyContainsCACerts	[2] BOOLEAN DEFAULT FALSE,
 onlySomeReasons		[3] ReasonFlags OPTIONAL,
 indirectCRL		[4] BOOLEAN DEFAUTL FALSE
 }
  ReasonFlags ::= BIT STRING {
       unused                  (0),
       keyCompromise           (1),
       cACompromise            (2),
       affiliationChanged      (3),
       superseded              (4),
       cessationOfOperation    (5),
       certificateHold         (6)
  }
 

Author:
cval
See Also:
Serialized Form

Field Summary
static String ID_CE_ISSUING_DISTRIBUTION_POINT
           
static int TAG_CONTAINS_CA_CERTS
           
static int TAG_CONTAINS_USER_CERTS
           
static int TAG_DISTRIBUTION_POINT
           
static int TAG_FULL_NAME
           
static int TAG_INDIRECT_CRL
           
static int TAG_SOME_REASONS
           
 
Fields inherited from class codec.x509.X509Extension
critical, extnID, extnValue
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
IssuingDistPoint()
           
 
Method Summary
 void addDistributionPointName(GeneralName aName)
           
 void addIndirectCrl(boolean indirect)
           
 void decode(Decoder dec)
          Reads this collection from the given Decoder.
 ASN1Sequence getDistributionPointNames()
          returns the ASN1SequenceOf that contains the GeneralNames with the distribution point URL's.
 String[] getDPURLs()
          returns an array of Strings containing all CRL-DP URL's RelativeDistinguishedName not implemented yet!
 boolean indirectCrl()
          returns the boolean value of indirectCrl.
 boolean onlyCaCerts()
          returns the boolean value of containsCaCerts.
 boolean onlyContainsUserCerts()
          returns the boolean value of containsUserCerts.
 void setContainsCaCerts(boolean caCerts)
           
 void setContainsUserCerts(boolean userCerts)
           
 void setSomeReasons(boolean[] flags)
           
 ASN1BitString someReasons()
          returns the boolean array of someReasons
 String toString()
          Returns a human-readable String representation of this extension
 String toString(String offset)
          Returns a human-readable String representation of this extension with an offset String.
 
Methods inherited from class codec.x509.X509Extension
decodeExtensionValue, getCriticalExtensionOIDs, getEncoded, getExtensionValue, getNonCriticalExtensionOIDs, getOID, getValue, hasUnsupportedCriticalExtension, isCritical, setCritical, setOID, setValue
 
Methods inherited from class codec.asn1.ASN1Sequence
getTag
 
Methods inherited from class codec.asn1.ASN1AbstractCollection
checkConstraints, encode, getCollection, getConstraint, getTagClass, isExplicit, isOptional, isType, readExternal, setConstraint, setExplicit, setOptional, writeExternal
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Field Detail

TAG_DISTRIBUTION_POINT

public static final int TAG_DISTRIBUTION_POINT

TAG_CONTAINS_USER_CERTS

public static final int TAG_CONTAINS_USER_CERTS

TAG_CONTAINS_CA_CERTS

public static final int TAG_CONTAINS_CA_CERTS

TAG_SOME_REASONS

public static final int TAG_SOME_REASONS

TAG_INDIRECT_CRL

public static final int TAG_INDIRECT_CRL

TAG_FULL_NAME

public static final int TAG_FULL_NAME

ID_CE_ISSUING_DISTRIBUTION_POINT

public static final String ID_CE_ISSUING_DISTRIBUTION_POINT
Constructor Detail

IssuingDistPoint

public IssuingDistPoint()
                 throws Exception
Method Detail

setContainsUserCerts

public void setContainsUserCerts(boolean userCerts)
                          throws Exception

setContainsCaCerts

public void setContainsCaCerts(boolean caCerts)
                        throws Exception

addDistributionPointName

public void addDistributionPointName(GeneralName aName)
                              throws Exception

setSomeReasons

public void setSomeReasons(boolean[] flags)
                    throws Exception

addIndirectCrl

public void addIndirectCrl(boolean indirect)
                    throws Exception

decode

public void decode(Decoder dec)
            throws ASN1Exception,
                   IOException
Description copied from class: ASN1AbstractCollection
Reads this collection from the given Decoder. This type is initialized with the decoded data. The components of the decoded collection must match the components of this collection. If they do then the components are also initialized with the decoded values. Otherwise an exception is thrown.
Overrides:
decode in class ASN1AbstractCollection
Following copied from class: codec.asn1.ASN1AbstractCollection
Parameters:
dec - The decoder to read from.

getDistributionPointNames

public ASN1Sequence getDistributionPointNames()
returns the ASN1SequenceOf that contains the GeneralNames with the distribution point URL's. Note that RelativeDistinguishedNames are NOT supported yet and will return null in this case!

onlyContainsUserCerts

public boolean onlyContainsUserCerts()
returns the boolean value of containsUserCerts.

onlyCaCerts

public boolean onlyCaCerts()
returns the boolean value of containsCaCerts.

indirectCrl

public boolean indirectCrl()
returns the boolean value of indirectCrl.

someReasons

public ASN1BitString someReasons()
returns the boolean array of someReasons

getDPURLs

public String[] getDPURLs()
returns an array of Strings containing all CRL-DP URL's RelativeDistinguishedName not implemented yet!

toString

public String toString(String offset)
Description copied from class: X509Extension
Returns a human-readable String representation of this extension with an offset String.
Overrides:
toString in class X509Extension
Following copied from class: codec.x509.X509Extension
Parameters:
offset - String that will be put before each line of output

toString

public String toString()
Description copied from class: X509Extension
Returns a human-readable String representation of this extension
Overrides:
toString in class X509Extension
Following copied from class: codec.asn1.ASN1AbstractCollection
Returns:
The string representation of this ASN.1 collection.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.