Package com.iplanet.security.x509
Class IssuingDistributionPointExtension
- java.lang.Object
-
- sun.security.x509.Extension
-
- com.iplanet.security.x509.IssuingDistributionPointExtension
-
- All Implemented Interfaces:
Extension
public class IssuingDistributionPointExtension extends sun.security.x509.ExtensionA critical CRL extension that identifies the CRL distribution point for a particular CRLissuingDistributionPoint ::= 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 AttributeType
-
-
Field Summary
Fields Modifier and Type Field Description static intAFFILIATION_CHANGEDstatic intCA_COMPROMISEstatic intCERTIFICATE_HOLDstatic intCESSATION_OF_OPERATIONstatic StringIDENTIdentifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.static intKEY_COMPROMISEstatic StringNAMEAttribute name.static intSUPERSEDED
-
Constructor Summary
Constructors Constructor Description IssuingDistributionPointExtension(Object value)Create the extension from the passed DER encoded value of the same.IssuingDistributionPointExtension(sun.security.x509.GeneralNames fullName, boolean onlyContainsUserCerts, boolean onlyContainsCACerts, boolean[] reasonFlags, boolean indirectCRL, boolean critical)Create a IssuingDistributionPointExtension.IssuingDistributionPointExtension(sun.security.x509.RDN relativeName, boolean onlyContainsUserCerts, boolean onlyContainsCACerts, boolean[] reasonFlags, boolean indirectCRL, boolean critical)Create a IssuingDistributionPointExtension.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(sun.security.util.DerOutputStream out)Write the extension to the DerOutputStream.sun.security.x509.GeneralNamesgetFullName()Return the full distribution point name or null if not set.booleangetIndirectCRL()Return the indirectCRL attributeStringgetName()Return the name of this attribute.booleangetOnlyContainsCACerts()Return the onlyContainsCACerts attributebooleangetOnlyContainsUserCerts()Return the onlyContainsUserCerts attributeboolean[]getOnlySomeReasons()Return the reason flags or null if not set.sun.security.x509.RDNgetRelativeName()Return the relative distribution point name or null if not set.voidsetFullName(sun.security.x509.GeneralNames fullName)Sets the full distribution point name.voidsetIndirectCRL(boolean indirectCRL)Sets the indirectCRL attribute.voidsetOnlyContainsCACerts(boolean onlyContainsCACerts)Sets the onlyContainsCACerts attribute.voidsetOnlyContainsUserCerts(boolean onlyContainsUserCerts)Sets the onlyContainsUserCerts attribute.voidsetOnlySomeReasons(boolean[] reasonFlags)Sets the reason flags for this distribution point.voidsetRelativeName(sun.security.x509.RDN relativeName)Sets the relative distribution point name.StringtoString()Return the extension as user readable string.
-
-
-
Field Detail
-
IDENT
public static final String IDENT
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.- See Also:
- Constant Field Values
-
KEY_COMPROMISE
public static final int KEY_COMPROMISE
- See Also:
- Constant Field Values
-
CA_COMPROMISE
public static final int CA_COMPROMISE
- See Also:
- Constant Field Values
-
AFFILIATION_CHANGED
public static final int AFFILIATION_CHANGED
- See Also:
- Constant Field Values
-
SUPERSEDED
public static final int SUPERSEDED
- See Also:
- Constant Field Values
-
CESSATION_OF_OPERATION
public static final int CESSATION_OF_OPERATION
- See Also:
- Constant Field Values
-
CERTIFICATE_HOLD
public static final int CERTIFICATE_HOLD
- See Also:
- Constant Field Values
-
NAME
public static final String NAME
Attribute name.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IssuingDistributionPointExtension
public IssuingDistributionPointExtension(sun.security.x509.GeneralNames fullName, boolean onlyContainsUserCerts, boolean onlyContainsCACerts, boolean[] reasonFlags, boolean indirectCRL, boolean critical) throws IOExceptionCreate a IssuingDistributionPointExtension.- Parameters:
fullName- the GeneralNames of the distribution point; may be nullonlyContainsUserCerts- the 'onlyContainsUserCerts' attributeonlyContainsCACerts- the 'onlyContainsCACerts' attributereasonFlags- the 'reasonFlags' attributeindirectCRL- the 'indirectCRL' attributecritical- true if this is a critical extension- Throws:
IOException- on error
-
IssuingDistributionPointExtension
public IssuingDistributionPointExtension(sun.security.x509.RDN relativeName, boolean onlyContainsUserCerts, boolean onlyContainsCACerts, boolean[] reasonFlags, boolean indirectCRL, boolean critical) throws IOExceptionCreate a IssuingDistributionPointExtension.- Parameters:
relativeName- the RelativeDistinguishedName of the distribution point; may not be nullonlyContainsUserCerts- the 'onlyContainsUserCerts' attributeonlyContainsCACerts- the 'onlyContainsCACerts' attributereasonFlags- the 'reasonFlags' attributeindirectCRL- the 'indirectCRL' attributecritical- true if this is a critical extension- Throws:
IOException- on error
-
IssuingDistributionPointExtension
public IssuingDistributionPointExtension(Object value) throws IOException
Create the extension from the passed DER encoded value of the same.- Parameters:
value- Array of DER encoded bytes of the actual value.- Throws:
IOException- on error.
-
-
Method Detail
-
getName
public String getName()
Return the name of this attribute.
-
getFullName
public sun.security.x509.GeneralNames getFullName()
Return the full distribution point name or null if not set.
-
getRelativeName
public sun.security.x509.RDN getRelativeName()
Return the relative distribution point name or null if not set.
-
getOnlyContainsUserCerts
public boolean getOnlyContainsUserCerts()
Return the onlyContainsUserCerts attribute
-
getOnlyContainsCACerts
public boolean getOnlyContainsCACerts()
Return the onlyContainsCACerts attribute
-
getOnlySomeReasons
public boolean[] getOnlySomeReasons()
Return the reason flags or null if not set.
-
getIndirectCRL
public boolean getIndirectCRL()
Return the indirectCRL attribute
-
setFullName
public void setFullName(sun.security.x509.GeneralNames fullName)
Sets the full distribution point name.
-
setRelativeName
public void setRelativeName(sun.security.x509.RDN relativeName)
Sets the relative distribution point name.
-
setOnlyContainsUserCerts
public void setOnlyContainsUserCerts(boolean onlyContainsUserCerts)
Sets the onlyContainsUserCerts attribute.
-
setOnlyContainsCACerts
public void setOnlyContainsCACerts(boolean onlyContainsCACerts)
Sets the onlyContainsCACerts attribute.
-
setOnlySomeReasons
public void setOnlySomeReasons(boolean[] reasonFlags)
Sets the reason flags for this distribution point.
-
setIndirectCRL
public void setIndirectCRL(boolean indirectCRL)
Sets the indirectCRL attribute.
-
encode
public void encode(sun.security.util.DerOutputStream out)
Write the extension to the DerOutputStream.- Overrides:
encodein classsun.security.x509.Extension- Parameters:
out- the DerOutputStream to write the extension to.- Throws:
IOException- on encoding errors.
-
toString
public String toString()
Return the extension as user readable string.- Overrides:
toStringin classsun.security.x509.Extension
-
-