Class InhibitAnyPolicyExtension
- java.lang.Object
-
- org.mozilla.jss.netscape.security.x509.Extension
-
- org.mozilla.jss.netscape.security.extensions.InhibitAnyPolicyExtension
-
- All Implemented Interfaces:
java.io.Serializable
,CertAttrSet
public class InhibitAnyPolicyExtension extends Extension implements CertAttrSet
RFC3280: id-ce-inhibitAnyPolicy OBJECT IDENTIFIER ::= { id-ce 54 } InhibitAnyPolicy ::= SkipCerts SkipCerts ::= INTEGER (0..MAX)- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
static java.lang.String
OID
-
Fields inherited from class org.mozilla.jss.netscape.security.x509.Extension
critical, extensionId, extensionValue
-
-
Constructor Summary
Constructors Constructor Description InhibitAnyPolicyExtension()
InhibitAnyPolicyExtension(boolean crit, BigInt skipCerts)
InhibitAnyPolicyExtension(java.lang.Boolean crit, java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 thedecode
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.-
Methods inherited from class org.mozilla.jss.netscape.security.x509.Extension
clearValue, encode, getExtensionId, getExtensionValue, isCritical, setExtensionId, setExtensionValue
-
-
-
-
Field Detail
-
OID
public static final java.lang.String OID
- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InhibitAnyPolicyExtension
public InhibitAnyPolicyExtension() throws java.io.IOException
- Throws:
java.io.IOException
-
InhibitAnyPolicyExtension
public InhibitAnyPolicyExtension(boolean crit, BigInt skipCerts) throws java.io.IOException
- Throws:
java.io.IOException
-
InhibitAnyPolicyExtension
public InhibitAnyPolicyExtension(java.lang.Boolean crit, java.lang.Object value) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
setCritical
public void setCritical(boolean newValue)
- Overrides:
setCritical
in classExtension
-
getSkipCerts
public BigInt getSkipCerts()
-
toString
public java.lang.String toString()
Description copied from class:Extension
Returns the Extension in user readable form.- Specified by:
toString
in interfaceCertAttrSet
- Overrides:
toString
in classExtension
- Returns:
- value of this certificate attribute in printable form.
-
decode
public void decode(java.io.InputStream in) throws java.security.cert.CertificateException, java.io.IOException
Description copied from interface:CertAttrSet
Decodes the attribute in the input stream.- Specified by:
decode
in interfaceCertAttrSet
- Parameters:
in
- the InputStream to read the encoded attribute from.- Throws:
java.security.cert.CertificateException
- on decoding or validity errors.java.io.IOException
- on other errors.
-
set
public void set(java.lang.String name, java.lang.Object obj) throws java.security.cert.CertificateException, java.io.IOException
Description copied from interface:CertAttrSet
Sets an attribute value within this CertAttrSet.- Specified by:
set
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute (e.g. "x509.info.key")obj
- the attribute object.- Throws:
java.security.cert.CertificateException
- on attribute handling errors.java.io.IOException
- on other errors.
-
get
public java.lang.Object get(java.lang.String name) throws java.security.cert.CertificateException, java.io.IOException
Description copied from interface:CertAttrSet
Gets an attribute value for this CertAttrSet.- Specified by:
get
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute to return.- Throws:
java.security.cert.CertificateException
- on attribute handling errors.java.io.IOException
- on other errors.
-
getAttributeNames
public java.util.Enumeration<java.lang.String> getAttributeNames()
Description copied from interface:CertAttrSet
Returns an enumeration of the names of the attributes existing within this attribute.- Specified by:
getAttributeNames
in interfaceCertAttrSet
- Returns:
- an enumeration of the attribute names.
-
getName
public java.lang.String getName()
Description copied from interface:CertAttrSet
Returns the name (identifier) of this CertAttrSet.- Specified by:
getName
in interfaceCertAttrSet
- Returns:
- the name of this CertAttrSet.
-
delete
public void delete(java.lang.String name) throws java.security.cert.CertificateException, java.io.IOException
Description copied from interface:CertAttrSet
Deletes an attribute value from this CertAttrSet.- Specified by:
delete
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute to delete.- Throws:
java.security.cert.CertificateException
- on attribute handling errors.java.io.IOException
- on other errors.
-
encode
public void encode(java.io.OutputStream out) throws java.io.IOException
Description copied from interface:CertAttrSet
Encodes the attribute to the output stream in a format that can be parsed by thedecode
method.- Specified by:
encode
in interfaceCertAttrSet
- Parameters:
out
- the OutputStream to encode the attribute to.- Throws:
java.io.IOException
- on other errors.
-
-