All Packages Class Hierarchy This Package Previous Next Index
Class netscape.security.x509.ACertAttrSet
netscape.security.x509.ACertAttrSet
- public class ACertAttrSet
- implements CertAttrSet
A plain certattr set used by pkcs10 to parse an unknown attribute.
-
mDerValue
-
-
ACertAttrSet(DerValue)
-
-
decode(InputStream)
- Decodes the attribute in the input stream.
-
delete(String)
- Deletes an attribute value from this CertAttrSet.
-
encode(OutputStream)
- Encodes the attribute to the output stream in a format
that can be parsed by the
decode method.
-
get(String)
- Gets an attribute value for this CertAttrSet.
-
getDerValue()
-
-
getElements()
- Returns an enumeration of the names of the attributes existing within
this attribute.
-
getName()
- Returns the name (identifier) of this CertAttrSet.
-
set(String, Object)
- Sets an attribute value within this CertAttrSet.
-
toString()
- Returns a short string describing this certificate attribute.
mDerValue
protected DerValue mDerValue
ACertAttrSet
public ACertAttrSet(DerValue derValue) throws IOException
getDerValue
public DerValue getDerValue()
toString
public String toString()
- Returns a short string describing this certificate attribute.
- Returns:
- value of this certificate attribute in
printable form.
encode
public void encode(OutputStream out) throws CertificateException, IOException
- Encodes the attribute to the output stream in a format
that can be parsed by the
decode method.
- Parameters:
- out - the OutputStream to encode the attribute to.
- Throws: CertificateException
- on encoding or validity errors.
- Throws: IOException
- on other errors.
decode
public void decode(InputStream in) throws CertificateException, IOException
- Decodes the attribute in the input stream.
- Parameters:
- in - the InputStream to read the encoded attribute from.
- Throws: CertificateException
- on decoding or validity errors.
- Throws: IOException
- on other errors.
set
public void set(String name,
Object obj) throws CertificateException, IOException
- Sets an attribute value within this CertAttrSet.
- Parameters:
- name - the name of the attribute (e.g. "x509.info.key")
- obj - the attribute object.
- Throws: CertificateException
- on attribute handling errors.
- Throws: IOException
- on other errors.
get
public Object get(String name) throws CertificateException, IOException
- Gets an attribute value for this CertAttrSet.
- Parameters:
- name - the name of the attribute to return.
- Throws: CertificateException
- on attribute handling errors.
- Throws: IOException
- on other errors.
delete
public void delete(String name) throws CertificateException, IOException
- Deletes an attribute value from this CertAttrSet.
- Parameters:
- name - the name of the attribute to delete.
- Throws: CertificateException
- on attribute handling errors.
- Throws: IOException
- on other errors.
getElements
public Enumeration getElements()
- Returns an enumeration of the names of the attributes existing within
this attribute.
- Returns:
- an enumeration of the attribute names.
getName
public String getName()
- Returns the name (identifier) of this CertAttrSet.
- Returns:
- the name of this CertAttrSet.
All Packages Class Hierarchy This Package Previous Next Index