Class InhibitAnyPolicyExtension
java.lang.Object
org.mozilla.jss.netscape.security.x509.Extension
org.mozilla.jss.netscape.security.extensions.InhibitAnyPolicyExtension
- All Implemented Interfaces:
Serializable
,CertAttrSet
RFC3280:
id-ce-inhibitAnyPolicy OBJECT IDENTIFIER ::= { id-ce 54 }
InhibitAnyPolicy ::= SkipCerts
SkipCerts ::= INTEGER (0..MAX)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BigInt
static final String
static final String
private static final long
Fields inherited from class org.mozilla.jss.netscape.security.x509.Extension
critical, extensionId, extensionValue
-
Constructor Summary
ConstructorsConstructorDescriptionInhibitAnyPolicyExtension
(boolean crit, BigInt skipCerts) InhibitAnyPolicyExtension
(Boolean crit, Object value) -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(InputStream in) Decodes the attribute in the input stream.private void
void
Deletes an attribute value from this CertAttrSet.void
encode
(OutputStream out) Encodes the attribute to the output stream in a format that can be parsed by thedecode
method.private void
Gets an attribute value for this CertAttrSet.Returns an enumeration of the names of the attributes existing within this attribute.getName()
Returns the name (identifier) of this CertAttrSet.void
Sets an attribute value within this CertAttrSet.void
setCritical
(boolean newValue) 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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
OID
- See Also:
-
NAME
- See Also:
-
mSkipCerts
-
-
Constructor Details
-
InhibitAnyPolicyExtension
- Throws:
IOException
-
InhibitAnyPolicyExtension
- Throws:
IOException
-
InhibitAnyPolicyExtension
- Throws:
IOException
-
-
Method Details
-
setCritical
public void setCritical(boolean newValue) - Overrides:
setCritical
in classExtension
-
getSkipCerts
-
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
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:
CertificateException
- on decoding or validity errors.IOException
- on other errors.
-
set
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:
CertificateException
- on attribute handling errors.IOException
- on other errors.
-
get
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.- Returns:
- attribute value
- Throws:
CertificateException
- on attribute handling errors.IOException
- on other errors.
-
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
Description copied from interface:CertAttrSet
Returns the name (identifier) of this CertAttrSet.- Specified by:
getName
in interfaceCertAttrSet
- Returns:
- the name of this CertAttrSet.
-
delete
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:
CertificateException
- on attribute handling errors.IOException
- on other errors.
-
decodeThis
- Throws:
IOException
-
encode
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:
IOException
- on other errors.
-
encodeExtValue
- Throws:
IOException
-