public class IssuingDistributionPointExtension extends Extension implements CertAttrSet
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 java.lang.String |
ISSUING_DISTRIBUTION_POINT |
static java.lang.String |
NAME
Attribute names.
|
static java.lang.String |
OID
The Object Identifier for this extension.
|
critical, extensionId, extensionValue| Constructor and Description |
|---|
IssuingDistributionPointExtension(java.lang.Boolean critical,
java.lang.Object value)
This constructor is very important, since it will be called
by the system.
|
IssuingDistributionPointExtension(IssuingDistributionPoint idp)
Creates a new IssuingDistributionPoint extension, with the given
issuing distribution point as the first element.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(java.io.InputStream in)
Decodes the attribute in the input stream.
|
void |
delete(java.lang.String name)
Deletes an attribute value from this CertAttrSet.
|
void |
encode(DerOutputStream out)
Encodes this extension to the given DerOutputStream.
|
void |
encode(java.io.OutputStream ostream)
DER-encodes this extension to the given OutputStream.
|
void |
flushCachedEncoding()
Should be called if any change is made to this data structure
so that the cached DER encoding can be discarded.
|
java.lang.Object |
get(java.lang.String name)
Gets an attribute value for this CertAttrSet.
|
java.util.Enumeration<java.lang.String> |
getAttributeNames()
Returns an enumeration of the names of the attributes existing within
this attribute.
|
boolean |
getCritical(boolean critical)
Gets the criticality of this extension.
|
IssuingDistributionPoint |
getIssuingDistributionPoint()
Returns the issuing distribution point.
|
java.lang.String |
getName()
Returns the name (identifier) of this CertAttrSet.
|
static void |
main(java.lang.String[] args)
Test driver.
|
void |
set(java.lang.String name,
java.lang.Object obj)
Sets an attribute value within this CertAttrSet.
|
void |
setCritical(boolean critical)
Sets the criticality of this extension.
|
java.lang.String |
toString()
Returns a printable representation of the IssuingDistributionPointExtension
|
clearValue, getExtensionId, getExtensionValue, isCritical, setExtensionId, setExtensionValuepublic static final java.lang.String OID
public static final java.lang.String NAME
public static final java.lang.String ISSUING_DISTRIBUTION_POINT
public IssuingDistributionPointExtension(java.lang.Boolean critical,
java.lang.Object value)
throws java.io.IOException
java.io.IOExceptionpublic IssuingDistributionPointExtension(IssuingDistributionPoint idp)
public IssuingDistributionPoint getIssuingDistributionPoint()
public void setCritical(boolean critical)
setCritical in class Extensionpublic boolean getCritical(boolean critical)
public void encode(DerOutputStream out) throws java.io.IOException
public void flushCachedEncoding()
public java.lang.String toString()
toString in interface CertAttrSettoString in class Extensionpublic void encode(java.io.OutputStream ostream)
throws java.security.cert.CertificateException,
java.io.IOException
encode in interface CertAttrSetostream - the OutputStream to encode the attribute to.java.security.cert.CertificateException - on encoding or validity errors.java.io.IOException - on other errors.public void decode(java.io.InputStream in)
throws java.security.cert.CertificateException,
java.io.IOException
CertAttrSetdecode in interface CertAttrSetin - the InputStream to read the encoded attribute from.java.security.cert.CertificateException - on decoding or validity errors.java.io.IOException - on other errors.public void set(java.lang.String name,
java.lang.Object obj)
throws java.security.cert.CertificateException,
java.io.IOException
CertAttrSetset in interface CertAttrSetname - the name of the attribute (e.g. "x509.info.key")obj - the attribute object.java.security.cert.CertificateException - on attribute handling errors.java.io.IOException - on other errors.public java.lang.Object get(java.lang.String name)
throws java.security.cert.CertificateException,
java.io.IOException
CertAttrSetget in interface CertAttrSetname - the name of the attribute to return.java.security.cert.CertificateException - on attribute handling errors.java.io.IOException - on other errors.public void delete(java.lang.String name)
throws java.security.cert.CertificateException,
java.io.IOException
CertAttrSetdelete in interface CertAttrSetname - the name of the attribute to delete.java.security.cert.CertificateException - on attribute handling errors.java.io.IOException - on other errors.public java.util.Enumeration<java.lang.String> getAttributeNames()
CertAttrSetgetAttributeNames in interface CertAttrSetpublic java.lang.String getName()
CertAttrSetgetName in interface CertAttrSetpublic static void main(java.lang.String[] args)