|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security12.sun.security.x509.CertificateExtensions
This class defines the Extensions attribute for the Certificate.
CertAttrSet
Field Summary | |
static String |
IDENT
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type. |
static String |
NAME
name |
Constructor Summary | |
CertificateExtensions()
Default constructor. |
|
CertificateExtensions(DerInputStream in)
Create the object, decoding the values from the passed DER stream. |
Method Summary | |
void |
decode(InputStream in)
Decode the extensions from the InputStream. |
void |
delete(String name)
Delete the attribute value. |
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. |
void |
encode(OutputStream out,
boolean isCertReq)
Encode the extensions in DER form to the stream. |
boolean |
equals(Object other)
Compares this CertificateExtensions for equality with the specified object. |
Object |
get(String name)
Get the attribute value. |
Collection |
getAllExtensions()
Return a collection view of the extensions. |
Enumeration |
getElements()
Return an enumeration of names of attributes existing within this attribute. |
String |
getName()
Return the name of this attribute. |
int |
hashCode()
Returns a hashcode value for this CertificateExtensions. |
boolean |
hasUnsupportedCriticalExtension()
Return true if a critical extension is found that is not supported, otherwise return false. |
void |
set(String name,
Object obj)
Set the attribute value. |
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). |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final String IDENT
public static final String NAME
Constructor Detail |
public CertificateExtensions()
public CertificateExtensions(DerInputStream in) throws IOException
in
- the DerInputStream to read the Extension from.Method Detail |
public void decode(InputStream in) throws IOException
in
- the InputStream to unmarshal the contents from.public void encode(OutputStream out) throws CertificateException, IOException
out
- the DerOutputStream to marshal the contents to.public void encode(OutputStream out, boolean isCertReq) throws CertificateException, IOException
out
- the DerOutputStream to marshal the contents to.isCertReq
- if true then no context specific tag is added.public void set(String name, Object obj) throws IOException
name
- the extension name used in the cache.obj
- the object to set.public Object get(String name) throws IOException
name
- the extension name used in the lookup.public void delete(String name) throws IOException
name
- the extension name used in the lookup.public Enumeration getElements()
public Collection getAllExtensions()
public String getName()
public boolean hasUnsupportedCriticalExtension()
public boolean equals(Object other)
other
object is an
instanceof
CertificateExtensions
, then
all the entries are compared with the entries from this.other
- the object to test for equality with this CertificateExtensions.public int hashCode()
public String toString()
Overrides to toString method of Object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |