public class InhibitAnyPolicyExtension extends Extension implements CertAttrSet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
static java.lang.String |
OID |
critical, extensionId, extensionValue
Constructor and Description |
---|
InhibitAnyPolicyExtension() |
InhibitAnyPolicyExtension(boolean crit,
BigInt skipCerts) |
InhibitAnyPolicyExtension(java.lang.Boolean crit,
java.lang.Object value) |
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(java.io.OutputStream out)
Encodes the attribute to the output stream in a format
that can be parsed by the
decode method. |
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.
|
java.lang.String |
getName()
Returns the name (identifier) of this CertAttrSet.
|
BigInt |
getSkipCerts() |
void |
set(java.lang.String name,
java.lang.Object obj)
Sets an attribute value within this CertAttrSet.
|
void |
setCritical(boolean newValue) |
java.lang.String |
toString()
Returns the Extension in user readable form.
|
clearValue, encode, getExtensionId, getExtensionValue, isCritical, setExtensionId, setExtensionValue
public static final java.lang.String OID
public static final java.lang.String NAME
public InhibitAnyPolicyExtension() throws java.io.IOException
java.io.IOException
public InhibitAnyPolicyExtension(boolean crit, BigInt skipCerts) throws java.io.IOException
java.io.IOException
public InhibitAnyPolicyExtension(java.lang.Boolean crit, java.lang.Object value) throws java.io.IOException
java.io.IOException
public void setCritical(boolean newValue)
setCritical
in class Extension
public BigInt getSkipCerts()
public java.lang.String toString()
Extension
toString
in interface CertAttrSet
toString
in class Extension
public void decode(java.io.InputStream in) throws java.security.cert.CertificateException, java.io.IOException
CertAttrSet
decode
in interface CertAttrSet
in
- 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
CertAttrSet
set
in interface CertAttrSet
name
- 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
CertAttrSet
get
in interface CertAttrSet
name
- the name of the attribute to return.java.security.cert.CertificateException
- on attribute handling errors.java.io.IOException
- on other errors.public java.util.Enumeration<java.lang.String> getAttributeNames()
CertAttrSet
getAttributeNames
in interface CertAttrSet
public java.lang.String getName()
CertAttrSet
getName
in interface CertAttrSet
public void delete(java.lang.String name) throws java.security.cert.CertificateException, java.io.IOException
CertAttrSet
delete
in interface CertAttrSet
name
- the name of the attribute to delete.java.security.cert.CertificateException
- on attribute handling errors.java.io.IOException
- on other errors.public void encode(java.io.OutputStream out) throws java.io.IOException
CertAttrSet
decode
method.encode
in interface CertAttrSet
out
- the OutputStream to encode the attribute to.java.io.IOException
- on other errors.