Package netscape.security.x509
Class IssuingDistributionPoint
- java.lang.Object
-
- netscape.security.x509.IssuingDistributionPoint
-
- All Implemented Interfaces:
org.mozilla.jss.asn1.ASN1Value
public class IssuingDistributionPoint extends java.lang.Object implements org.mozilla.jss.asn1.ASN1ValueissuingDistributionPoint ::= SEQUENCE { distributionPoint [0] DistributionPointName OPTIONAL, onlyContainsUserCerts [1] BOOLEAN DEFAULT FALSE, onlyContainsCACerts [2] BOOLEAN DEFAULT FALSE, onlySomeReasons [3] ReasonFlags OPTIONAL, indirectCRL [4] BOOLEAN DEFAULT FALSE } 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) } GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName GeneralName ::= CHOICE { otherName [0] OtherName, rfc822Name [1] IA5String, dNSName [2] IA5String, x400Address [3] ORAddress, directoryName [4] Name, ediPartyName [5] EDIPartyName, uniformResourceIdentifier [6] IA5String, iPAddress [7] OCTET STRING, registeredID [8] OBJECT IDENTIFIER} OtherName ::= SEQUENCE { type-id OBJECT IDENTIFIER, value [0] EXPLICIT ANY DEFINED BY type-id } EDIPartyName ::= SEQUENCE { nameAssigner [0] DirectoryString OPTIONAL, partyName [1] DirectoryString } RelativeDistinguishedName ::= SET OF AttributeTypeAndValue AttributeTypeAndValue ::= SEQUENCE { type AttributeType, value AttributeValue } AttributeType ::= OBJECT IDENTIFIER AttributeValue ::= ANY DEFINED BY AttributeTypeSee the documentation inCRLDistributionPointfor theDistributionPointNameandReasonFlagsASN.1 types.
-
-
Constructor Summary
Constructors Constructor Description IssuingDistributionPoint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(java.io.OutputStream ostream)voidencode(org.mozilla.jss.asn1.Tag implicitTag, java.io.OutputStream ostream)GeneralNamesgetFullName()Returns thefullNameof theDistributionPointName, which may benull.booleangetIndirectCRL()booleangetOnlyContainsCACerts()booleangetOnlyContainsUserCerts()BitArraygetOnlySomeReasons()Returns the reason flags for this distribution point.RDNgetRelativeName()Returns therelativeNameof theDistributionPointName, which may benull.org.mozilla.jss.asn1.TaggetTag()static voidmain(java.lang.String[] args)voidsetFullName(GeneralNames fullName)Sets thefullNameof theDistributionPointName.voidsetIndirectCRL(boolean b)voidsetOnlyContainsCACerts(boolean b)voidsetOnlyContainsUserCerts(boolean b)voidsetOnlySomeReasons(BitArray reasons)Sets the reason flags for this distribution point.voidsetRelativeName(RDN relativeName)Sets therelativeNameof theDistributionPointName.
-
-
-
Method Detail
-
getFullName
public GeneralNames getFullName()
Returns thefullNameof theDistributionPointName, which may benull.
-
getRelativeName
public RDN getRelativeName()
Returns therelativeNameof theDistributionPointName, which may benull.
-
setFullName
public void setFullName(GeneralNames fullName) throws GeneralNamesException, java.io.IOException
Sets thefullNameof theDistributionPointName. It may be set tonull. If it is set to a non-null value,relativeNamewill 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.java.io.IOException
-
setRelativeName
public void setRelativeName(RDN relativeName)
Sets therelativeNameof theDistributionPointName. It may be set tonull. If it is set to a non-null value,fullNamewill be set tonull, because at most one of these two attributes can be specified at a time.
-
getOnlyContainsUserCerts
public boolean getOnlyContainsUserCerts()
-
setOnlyContainsUserCerts
public void setOnlyContainsUserCerts(boolean b)
-
getOnlyContainsCACerts
public boolean getOnlyContainsCACerts()
-
setOnlyContainsCACerts
public void setOnlyContainsCACerts(boolean b)
-
getOnlySomeReasons
public BitArray getOnlySomeReasons()
Returns the reason flags for this distribution point. May benull.
-
setOnlySomeReasons
public void setOnlySomeReasons(BitArray reasons)
Sets the reason flags for this distribution point. May be set tonull.
-
getIndirectCRL
public boolean getIndirectCRL()
-
setIndirectCRL
public void setIndirectCRL(boolean b)
-
getTag
public org.mozilla.jss.asn1.Tag getTag()
- Specified by:
getTagin interfaceorg.mozilla.jss.asn1.ASN1Value
-
encode
public void encode(java.io.OutputStream ostream) throws java.io.IOException- Specified by:
encodein interfaceorg.mozilla.jss.asn1.ASN1Value- Throws:
java.io.IOException
-
encode
public void encode(org.mozilla.jss.asn1.Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException- Specified by:
encodein interfaceorg.mozilla.jss.asn1.ASN1Value- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args)
-
-