edu.vt.middleware.crypt.x509.types
Class DistributionPoint

java.lang.Object
  extended by edu.vt.middleware.crypt.x509.types.DistributionPoint

public class DistributionPoint
extends Object

Representation of the DistributionPoint type defined in section 4.2.1.14 of RFC 2459.

Version:
$Revision: 2745 $
Author:
Middleware Services

Constructor Summary
DistributionPoint()
          Creates a new instance with no data.
DistributionPoint(GeneralNameList names, ReasonFlags flags, GeneralNameList issuer)
          Creates a new instance with the given data.
DistributionPoint(String relativeName, ReasonFlags flags, GeneralNameList issuer)
          Creates a new instance where the distribution point is known by a name relative to the CRL issuer name(s).
 
Method Summary
 boolean equals(Object obj)
          
 GeneralNameList getCRLIssuer()
           
 Object getDistributionPoint()
           
 ReasonFlags getReasons()
           
 int hashCode()
          
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DistributionPoint

public DistributionPoint()
Creates a new instance with no data. While RFC 2459 technically allows this, it is meaningless to do so.


DistributionPoint

public DistributionPoint(String relativeName,
                         ReasonFlags flags,
                         GeneralNameList issuer)
Creates a new instance where the distribution point is known by a name relative to the CRL issuer name(s).

Parameters:
relativeName - Name relative to CRL issuer.
flags - Revocation reasons supported by CRL distribution point.
issuer - CRL issuer name(s); cannot be null in this case since this is required to give a basis for the relative name.
Throws:
IllegalArgumentException - When issuer is null.

DistributionPoint

public DistributionPoint(GeneralNameList names,
                         ReasonFlags flags,
                         GeneralNameList issuer)
Creates a new instance with the given data.

Parameters:
names - Name(s) by which CRL distribution point is known.
flags - Revocation reasons supported by CRL distribution point.
issuer - CRL issuer name(s).
Method Detail

getDistributionPoint

public Object getDistributionPoint()
Returns:
Name of the distribution point or null if no name is defined. Returns a string in case the distribution point is simply a URI, otherwise a GeneralNameList describing the name(s) by which the distribution point is known.

getReasons

public ReasonFlags getReasons()
Returns:
Revocation reasons supported by the distribution point or null if no reasons are defined.

getCRLIssuer

public GeneralNameList getCRLIssuer()
Returns:
CRL issuer name(s) or null if none are defined.

toString

public String toString()
Overrides:
toString in class Object
Returns:
String representation of name of distribution point.

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2003-2013 Virginia Tech. All Rights Reserved.