codec.x509.extensions
Class DistributionPoint

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

public class DistributionPoint
extends ASN1Sequence

  DistributionPoint ::= SEQUENCE {
       distributionPoint       [0] EXPLICIT DistributionPointName OPTIONAL,
       reasons                 [1] IMPLICIT ReasonFlags OPTIONAL,
       cRLIssuer               [2] IMPLICIT GeneralNames OPTIONAL
  }
  DistributionPointName ::= CHOICE {
       fullName                [0] IMPLICIT GeneralNames,
       nameRelativeToCRLIssuer [1] IMPLICIT RelativeDistinguishedName
  } NOT IMPLEMENTED YET
  ReasonFlags ::= BIT STRING {
       unused                  (0),
       keyCompromise           (1),
       cACompromise            (2),
       affiliationChanged      (3),
       superseded              (4),
       cessationOfOperation    (5),
       certificateHold         (6)
  }
 

See Also:
Serialized Form

Field Summary
static int TAG_CRL_ISSUER
           
static int TAG_DISTRIBUTION_POINT
           
static int TAG_FULL_NAME
           
static int TAG_REASONS
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
DistributionPoint()
           
 
Method Summary
 void addCRLIssuer(GeneralName aName)
           
 void addDistributionPointName(GeneralName aName)
           
 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!
 void setReasons(boolean[] flags)
           
 String toString()
          Prints this collection.
 String toString(String offset)
           
 
Methods inherited from class codec.asn1.ASN1Sequence
getTag
 
Methods inherited from class codec.asn1.ASN1AbstractCollection
checkConstraints, decode, encode, getCollection, getConstraint, getTagClass, getValue, 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.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_REASONS

public static final int TAG_REASONS

TAG_CRL_ISSUER

public static final int TAG_CRL_ISSUER

TAG_FULL_NAME

public static final int TAG_FULL_NAME
Constructor Detail

DistributionPoint

public DistributionPoint()
Method Detail

setReasons

public void setReasons(boolean[] flags)
                throws ASN1Exception

addDistributionPointName

public void addDistributionPointName(GeneralName aName)

addCRLIssuer

public void addCRLIssuer(GeneralName aName)

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!

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)

toString

public String toString()
Description copied from class: ASN1AbstractCollection
Prints this collection. This default implementation derives a descriptive name from the name of the fully qualified name of this class (or that of the respective subclass). The last component of the class name is extracted and a prefix of "ASN1" is removed from it. Then the elements contained in this collection are printed.
Overrides:
toString in class ASN1AbstractCollection
Following copied from class: codec.asn1.ASN1AbstractCollection
Returns:
The string representation of this ASN.1 collection.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.