public class IssuingDistributionPointExtension
extends sun.security.x509.Extension
issuingDistributionPoint ::= 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
| Modifier and Type | Field and Description |
|---|---|
static int |
AFFILIATION_CHANGED |
static int |
CA_COMPROMISE |
static int |
CERTIFICATE_HOLD |
static int |
CESSATION_OF_OPERATION |
static String |
IDENT
Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
|
static int |
KEY_COMPROMISE |
static String |
NAME
Attribute name.
|
static int |
SUPERSEDED |
| Constructor and Description |
|---|
IssuingDistributionPointExtension(sun.security.x509.GeneralNames fullName,
boolean onlyContainsUserCerts,
boolean onlyContainsCACerts,
boolean[] reasonFlags,
boolean indirectCRL,
boolean critical)
Create a IssuingDistributionPointExtension.
|
IssuingDistributionPointExtension(Object value)
Create the extension from the passed DER encoded value of the same.
|
IssuingDistributionPointExtension(sun.security.x509.RDN relativeName,
boolean onlyContainsUserCerts,
boolean onlyContainsCACerts,
boolean[] reasonFlags,
boolean indirectCRL,
boolean critical)
Create a IssuingDistributionPointExtension.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(sun.security.util.DerOutputStream out)
Write the extension to the DerOutputStream.
|
sun.security.x509.GeneralNames |
getFullName()
Return the full distribution point name or null if not set.
|
boolean |
getIndirectCRL()
Return the indirectCRL attribute
|
String |
getName()
Return the name of this attribute.
|
boolean |
getOnlyContainsCACerts()
Return the onlyContainsCACerts attribute
|
boolean |
getOnlyContainsUserCerts()
Return the onlyContainsUserCerts attribute
|
boolean[] |
getOnlySomeReasons()
Return the reason flags or null if not set.
|
sun.security.x509.RDN |
getRelativeName()
Return the relative distribution point name or null if not set.
|
void |
setFullName(sun.security.x509.GeneralNames fullName)
Sets the full distribution point name.
|
void |
setIndirectCRL(boolean indirectCRL)
Sets the indirectCRL attribute.
|
void |
setOnlyContainsCACerts(boolean onlyContainsCACerts)
Sets the onlyContainsCACerts attribute.
|
void |
setOnlyContainsUserCerts(boolean onlyContainsUserCerts)
Sets the onlyContainsUserCerts attribute.
|
void |
setOnlySomeReasons(boolean[] reasonFlags)
Sets the reason flags for this distribution point.
|
void |
setRelativeName(sun.security.x509.RDN relativeName)
Sets the relative distribution point name.
|
String |
toString()
Return the extension as user readable string.
|
public static final String IDENT
public static final int KEY_COMPROMISE
public static final int CA_COMPROMISE
public static final int AFFILIATION_CHANGED
public static final int SUPERSEDED
public static final int CESSATION_OF_OPERATION
public static final int CERTIFICATE_HOLD
public static final String NAME
public IssuingDistributionPointExtension(sun.security.x509.GeneralNames fullName,
boolean onlyContainsUserCerts,
boolean onlyContainsCACerts,
boolean[] reasonFlags,
boolean indirectCRL,
boolean critical)
throws IOException
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 extensionIOException - on errorpublic IssuingDistributionPointExtension(sun.security.x509.RDN relativeName,
boolean onlyContainsUserCerts,
boolean onlyContainsCACerts,
boolean[] reasonFlags,
boolean indirectCRL,
boolean critical)
throws IOException
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 extensionIOException - on errorpublic IssuingDistributionPointExtension(Object value) throws IOException
value - Array of DER encoded bytes of the actual value.IOException - on error.public String getName()
public sun.security.x509.GeneralNames getFullName()
public sun.security.x509.RDN getRelativeName()
public boolean getOnlyContainsUserCerts()
public boolean getOnlyContainsCACerts()
public boolean[] getOnlySomeReasons()
public boolean getIndirectCRL()
public void setFullName(sun.security.x509.GeneralNames fullName)
public void setRelativeName(sun.security.x509.RDN relativeName)
public void setOnlyContainsUserCerts(boolean onlyContainsUserCerts)
public void setOnlyContainsCACerts(boolean onlyContainsCACerts)
public void setOnlySomeReasons(boolean[] reasonFlags)
public void setIndirectCRL(boolean indirectCRL)
public void encode(sun.security.util.DerOutputStream out)
encode in class sun.security.x509.Extensionout - the DerOutputStream to write the extension to.IOException - on encoding errors.public String toString()
toString in class sun.security.x509.ExtensionCopyright © 2010–2023 Open Identity Platform Community. All rights reserved.