Class CRLDistributionPoint
java.lang.Object
org.mozilla.jss.netscape.security.x509.CRLDistributionPoint
- All Implemented Interfaces:
ASN1Value
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) }
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Template for decoding CRLDistributionPoint. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GeneralNames
private ANY
private GeneralNames
private ANY
private BitArray
private RDN
private static final Tag
private static CRLDistributionPoint.Template
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.void
encode
(Tag implicitTag, OutputStream ostream) Write this value's DER encoding to an output stream using an implicit tag.Returns the CRLIssuer for the CRL at this distribution point.Returns thefullName
of theDistributionPointName
, which may benull
.Returns the reason flags for this distribution point.Returns therelativeName
of theDistributionPointName
, which may benull
.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.Returns an instance of a template for decoding a CRLDistributionPoint.static void
void
setCRLIssuer
(GeneralNames CRLIssuer) Sets the CRLIssuer for the CRL at this distribution point.void
setFullName
(GeneralNames fullName) Sets thefullName
of theDistributionPointName
.void
setReasons
(BitArray reasons) Sets the reason flags for this distribution point.void
setRelativeName
(RDN relativeName) Sets therelativeName
of theDistributionPointName
.
-
Field Details
-
fullName
-
relativeName
-
fullNameEncoding
-
reasons
-
CRLIssuer
-
CRLIssuerEncoding
-
TAG
-
templateInstance
-
-
Constructor Details
-
CRLDistributionPoint
public CRLDistributionPoint()
-
-
Method Details
-
getFullName
Returns thefullName
of theDistributionPointName
, which may benull
. -
getRelativeName
Returns therelativeName
of theDistributionPointName
, which may benull
. -
setFullName
Sets thefullName
of theDistributionPointName
. It may be set tonull
. If it is set to a non-null value,relativeName
will be set tonull
, because at most one of these two attributes can be specified at a time.- Throws:
GeneralNamesException
- If an error occurs encoding the name.IOException
-
setRelativeName
Sets therelativeName
of theDistributionPointName
. It may be set tonull
. If it is set to a non-null value,fullName
will be set tonull
, because at most one of these two attributes can be specified at a time. -
getReasons
Returns the reason flags for this distribution point. May benull
. -
setReasons
Sets the reason flags for this distribution point. May be set tonull
. -
getCRLIssuer
Returns the CRLIssuer for the CRL at this distribution point. May benull
. -
setCRLIssuer
Sets the CRLIssuer for the CRL at this distribution point. May be set tonull
.- Throws:
GeneralNamesException
- If an error occurs encoding the name.IOException
-
getTag
Description copied from interface:ASN1Value
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
implicitTag
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
getTemplate
Returns an instance of a template for decoding a CRLDistributionPoint. -
main
public static void main(String[] args) throws GeneralNamesException, IOException, InvalidBERException
-