public class OldDistributionPointName
extends java.lang.Object
OldDistributionPointName as used by the OldIssuingDistributionPoint
extension. The entire hierarchy has been replaced by the X509 IssuingDistributionPoint extension and
its sub-structures, but the old versions are required to parse some existing certificates.
The OldDistributionPointName structure is defined as:
OldDistributionPointName ::= CHOICE {
fullName [0] Name,
nameRelativeToCA [1] RelativeDistinguishedName }
In both cases the value is a Name structure, but in the second case it should be considered a partial
path relative to the issuing CA.
Standard set and get methods are provided for each field.
OldDistributionPoint,
Name| Constructor and Description |
|---|
OldDistributionPointName()
Default constructor.
|
OldDistributionPointName(ASN1Object obj)
Implements the ASN1Type interface.
|
| Modifier and Type | Method and Description |
|---|---|
Name |
getDirectoryName(Name parent)
Returns the
name value of this OldDistributionPointName
structure as an absolute path name. |
Name |
getDistributionPointName()
Returns the
name value of this OldDistributionPointName
structure specifying the (relative or absolute) name of the distribution point. |
boolean |
getRelativeFlag()
Returns
true if the name in this structure is considered a relative path name. |
java.lang.String |
toString()
Returns a string that represents the contents of this
OldDistributionPointName structure. |
public OldDistributionPointName()
Generating a new OldDistributionPointName structure is not supported.
This class is provided for backward compatibility with existing certificates only.
public OldDistributionPointName(ASN1Object obj) throws CodingException
The given ASN1Object is parsed for the name and relative fields.
obj - the OldDistributionPointName as an ASN1ObjectCodingException - if the given ASN1Object is not an OldDistributionPointNamepublic Name getDistributionPointName()
name value of this OldDistributionPointName
structure specifying the (relative or absolute) name of the distribution point.name value.public boolean getRelativeFlag()
true if the name in this structure is considered a relative path name.true if name is relative, false if not.public java.lang.String toString()
OldDistributionPointName structure.toString in class java.lang.Objectpublic Name getDirectoryName(Name parent)
name value of this OldDistributionPointName
structure as an absolute path name.
The absolute path name may be the name itself (if it is not considered relative), or the concatenation of the given parent location and the RDNs from the current name. In either case this method returns an absolute path name.
parent - the parent of a relative path