All Packages Class Hierarchy This Package Previous Next Index
Class netscape.security.x509.CRLDistributionPointsExtension
netscape.security.x509.Extension
|
+----netscape.security.x509.CRLDistributionPointsExtension
- public class CRLDistributionPointsExtension
- extends Extension
- implements CertAttrSet
An extension that tells applications where to find the CRL for
this certificate.
cRLDistributionPoints ::= SEQUENCE SIZE (1..MAX) OF DistributionPoint
DistributionPoint ::= SEQUENCE {
distributionPoint [0] DistributionPointName OPTIONAL,
reasons [1] ReasonFlags OPTIONAL,
cRLIssuer [2] GeneralNames OPTIONAL }
DistributionPointName ::= CHOICE {
fullName [0] GeneralNames,
nameRelativeToCRLIssuer [1] RelativeDistinguishedName }
ReasonFlags ::= BIT STRING {
unused (0),
keyCompromise (1),
cACompromise (2),
affiliationChanged (3),
superseded (4),
cessationOfOperation (5),
certificateHold (6) }
-
NAME
-
-
OID
- The Object Identifier for this extension.
-
CRLDistributionPointsExtension(Boolean, Object)
- This constructor is called by the CertificateExtensions class to decode
an extension whose OID indicates it is a CRLDistributionsPoints
extension.
-
CRLDistributionPointsExtension(CRLDistributionPoint)
- Creates a new CRLDistributionPoints extension, with the given
distribution point as the first element.
-
addPoint(CRLDistributionPoint)
- Adds an additional distribution point to the end of the sequence.
-
decode(InputStream)
-
-
delete(String)
-
-
encode(DerOutputStream)
- Encodes this extension to the given DerOutputStream.
-
encode(OutputStream)
- DER-encodes this extension to the given OutputStream.
-
flushCachedEncoding()
- Should be called if any change is made to this data structure
so that the cached DER encoding can be discarded.
-
get(String)
-
-
getElements()
-
-
getName()
-
-
getNumPoints()
- Returns the number of distribution points in the sequence.
-
getPointAt(int)
- Returns the DistributionPoint at the given index in the sequence.
-
main(String[])
- Test driver.
-
set(String, Object)
-
-
setCritical(boolean)
-
Sets the criticality of this extension.
-
toString()
- Returns the Extension in user readable form.
OID
public static final String OID
- The Object Identifier for this extension.
NAME
public static final String NAME
CRLDistributionPointsExtension
public CRLDistributionPointsExtension(Boolean critical,
Object value)
- This constructor is called by the CertificateExtensions class to decode
an extension whose OID indicates it is a CRLDistributionsPoints
extension.
CRLDistributionPointsExtension
public CRLDistributionPointsExtension(CRLDistributionPoint dp)
- Creates a new CRLDistributionPoints extension, with the given
distribution point as the first element.
addPoint
public void addPoint(CRLDistributionPoint dp)
- Adds an additional distribution point to the end of the sequence.
getNumPoints
public int getNumPoints()
- Returns the number of distribution points in the sequence.
getPointAt
public CRLDistributionPoint getPointAt(int index)
- Returns the DistributionPoint at the given index in the sequence.
setCritical
public void setCritical(boolean critical)
- Sets the criticality of this extension. PKIX dictates that this
extension SHOULD NOT be critical, so applications can make it critical
if they have a very good reason. By default, the extension is not
critical.
encode
public void encode(DerOutputStream out) throws IOException
- Encodes this extension to the given DerOutputStream.
This method re-encodes each time it is called, so it is not very
efficient.
- Overrides:
- encode in class Extension
flushCachedEncoding
public void flushCachedEncoding()
- Should be called if any change is made to this data structure
so that the cached DER encoding can be discarded.
toString
public String toString()
- Returns the Extension in user readable form.
- Overrides:
- toString in class Extension
encode
public void encode(OutputStream ostream) throws CertificateException, IOException
- DER-encodes this extension to the given OutputStream.
decode
public void decode(InputStream in) throws CertificateException, IOException
set
public void set(String name,
Object obj) throws CertificateException, IOException
get
public Object get(String name) throws CertificateException, IOException
delete
public void delete(String name) throws CertificateException, IOException
getElements
public Enumeration getElements()
getName
public String getName()
main
public static void main(String args[])
- Test driver.
All Packages Class Hierarchy This Package Previous Next Index