Class ExtensionsRequested
- java.lang.Object
-
- org.mozilla.jss.netscape.security.x509.ExtensionsRequested
-
- All Implemented Interfaces:
CertAttrSet
public class ExtensionsRequested extends java.lang.Object implements CertAttrSet
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringKUE_DIGITAL_SIGNATUREstatic java.lang.StringKUE_KEY_ENCIPHERMENTstatic java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description ExtensionsRequested(java.lang.Object stuff)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(java.io.InputStream in)Decodes the attribute in the input stream.voiddelete(java.lang.String name)Deletes an attribute value from this CertAttrSet.voidencode(java.io.OutputStream out)Encodes the attribute to the output stream in a format that can be parsed by thedecodemethod.java.lang.Objectget(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.util.Vector<Extension>getExtensions()java.lang.StringgetName()Returns the name (identifier) of this CertAttrSet.voidset(java.lang.String name, java.lang.Object obj)Sets an attribute value within this CertAttrSet.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mozilla.jss.netscape.security.x509.CertAttrSet
toString
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
KUE_DIGITAL_SIGNATURE
public static final java.lang.String KUE_DIGITAL_SIGNATURE
- See Also:
- Constant Field Values
-
KUE_KEY_ENCIPHERMENT
public static final java.lang.String KUE_KEY_ENCIPHERMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
encode
public void encode(java.io.OutputStream out) throws java.security.cert.CertificateException, java.io.IOExceptionDescription copied from interface:CertAttrSetEncodes the attribute to the output stream in a format that can be parsed by thedecodemethod.- Specified by:
encodein interfaceCertAttrSet- Parameters:
out- the OutputStream to encode the attribute to.- Throws:
java.security.cert.CertificateException- on encoding or validity errors.java.io.IOException- on other errors.
-
decode
public void decode(java.io.InputStream in) throws java.security.cert.CertificateException, java.io.IOExceptionDescription copied from interface:CertAttrSetDecodes the attribute in the input stream.- Specified by:
decodein 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.IOExceptionDescription copied from interface:CertAttrSetSets an attribute value within this CertAttrSet.- Specified by:
setin 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.IOExceptionDescription copied from interface:CertAttrSetGets an attribute value for this CertAttrSet.- Specified by:
getin 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.
-
delete
public void delete(java.lang.String name) throws java.security.cert.CertificateException, java.io.IOExceptionDescription copied from interface:CertAttrSetDeletes an attribute value from this CertAttrSet.- Specified by:
deletein 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.
-
getAttributeNames
public java.util.Enumeration<java.lang.String> getAttributeNames()
Description copied from interface:CertAttrSetReturns an enumeration of the names of the attributes existing within this attribute.- Specified by:
getAttributeNamesin interfaceCertAttrSet- Returns:
- an enumeration of the attribute names.
-
getName
public java.lang.String getName()
Description copied from interface:CertAttrSetReturns the name (identifier) of this CertAttrSet.- Specified by:
getNamein interfaceCertAttrSet- Returns:
- the name of this CertAttrSet.
-
getExtensions
public java.util.Vector<Extension> getExtensions()
-
-