| java.lang.Object sun.security.x509.CertificateExtensions
CertificateExtensions | public class CertificateExtensions implements CertAttrSet(Code) | | This class defines the Extensions attribute for the Certificate.
author: Amit Kapoor author: Hemma Prafullchandra version: 1.19 See Also: CertAttrSet |
Field Summary | |
final public static String | IDENT Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type. | final public static String | NAME |
Method Summary | |
public void | decode(InputStream in) Decode the extensions from the InputStream. | public void | delete(String name) Delete the attribute value. | public void | encode(OutputStream out) Encode the extensions in DER form to the stream, setting
the context specific tag as needed in the X.509 v3 certificate. | public void | encode(OutputStream out, boolean isCertReq) Encode the extensions in DER form to the stream. | public boolean | equals(Object other) Compares this CertificateExtensions for equality with the specified
object. | public Object | get(String name) Get the attribute value. | public Collection | getAllExtensions() Return a collection view of the extensions. | public Enumeration | getElements() Return an enumeration of names of attributes existing within this
attribute. | public String | getName() Return the name of this attribute. | public boolean | hasUnsupportedCriticalExtension() Return true if a critical extension is found that is
not supported, otherwise return false. | public int | hashCode() Returns a hashcode value for this CertificateExtensions. | public void | set(String name, Object obj) Set the attribute value. | public String | toString() Returns a string representation of this CertificateExtensions
object in the form of a set of entries, enclosed in braces and separated
by the ASCII characters ", " (comma and space). |
IDENT | final public static String IDENT(Code) | | Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
|
CertificateExtensions | public CertificateExtensions()(Code) | | Default constructor.
|
CertificateExtensions | public CertificateExtensions(DerInputStream in) throws IOException(Code) | | Create the object, decoding the values from the passed DER stream.
Parameters: in - the DerInputStream to read the Extension from. exception: IOException - on decoding errors. |
decode | public void decode(InputStream in) throws IOException(Code) | | Decode the extensions from the InputStream.
Parameters: in - the InputStream to unmarshal the contents from. exception: IOException - on decoding or validity errors. |
delete | public void delete(String name) throws IOException(Code) | | Delete the attribute value.
Parameters: name - the extension name used in the lookup. exception: IOException - if named extension is not found. |
equals | public boolean equals(Object other)(Code) | | Compares this CertificateExtensions for equality with the specified
object. If the other object is an
instanceof CertificateExtensions , then
all the entries are compared with the entries from this.
Parameters: other - the object to test for equality with this CertificateExtensions. true iff all the entries match that of the Other,false otherwise. |
getAllExtensions | public Collection getAllExtensions()(Code) | | Return a collection view of the extensions.
a collection view of the extensions in this Certificate. |
getElements | public Enumeration getElements()(Code) | | Return an enumeration of names of attributes existing within this
attribute.
|
getName | public String getName()(Code) | | Return the name of this attribute.
|
hasUnsupportedCriticalExtension | public boolean hasUnsupportedCriticalExtension()(Code) | | Return true if a critical extension is found that is
not supported, otherwise return false.
|
hashCode | public int hashCode()(Code) | | Returns a hashcode value for this CertificateExtensions.
the hashcode value. |
set | public void set(String name, Object obj) throws IOException(Code) | | Set the attribute value.
Parameters: name - the extension name used in the cache. Parameters: obj - the object to set. exception: IOException - if the object could not be cached. |
toString | public String toString()(Code) | | Returns a string representation of this CertificateExtensions
object in the form of a set of entries, enclosed in braces and separated
by the ASCII characters ", " (comma and space).
Overrides to toString method of Object.
a string representation of this CertificateExtensions. |
|
|