public class CertificateExtensions extends java.lang.Object implements CertAttrSet<Extension>
CertAttrSet| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IDENT
Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
|
static java.lang.String |
NAME
name
|
| Constructor and Description |
|---|
CertificateExtensions()
Default constructor.
|
CertificateExtensions(DerInputStream in)
Create the object, decoding the values from the passed DER stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(java.lang.String name)
Delete the attribute value.
|
void |
encode(java.io.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(java.io.OutputStream out,
boolean isCertReq)
Encode the extensions in DER form to the stream.
|
boolean |
equals(java.lang.Object other)
Compares this CertificateExtensions for equality with the specified
object.
|
java.lang.Object |
get(java.lang.String name)
Get the attribute value.
|
java.util.Collection<Extension> |
getAllExtensions()
Return a collection view of the extensions.
|
java.util.Enumeration<Extension> |
getElements()
Return an enumeration of names of attributes existing within this
attribute.
|
java.lang.String |
getName()
Return the name of this attribute.
|
java.util.Map<java.lang.String,Extension> |
getUnparseableExtensions() |
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(java.lang.String name,
java.lang.Object obj)
Set the attribute value.
|
java.lang.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).
|
public static final java.lang.String IDENT
public static final java.lang.String NAME
public CertificateExtensions()
public CertificateExtensions(DerInputStream in) throws java.io.IOException
in - the DerInputStream to read the Extension from.java.io.IOException - on decoding errors.public void encode(java.io.OutputStream out)
throws java.security.cert.CertificateException,
java.io.IOException
encode in interface CertAttrSet<Extension>out - the DerOutputStream to marshal the contents to.java.security.cert.CertificateException - on encoding errors.java.io.IOException - on errors.public void encode(java.io.OutputStream out,
boolean isCertReq)
throws java.security.cert.CertificateException,
java.io.IOException
out - the DerOutputStream to marshal the contents to.isCertReq - if true then no context specific tag is added.java.security.cert.CertificateException - on encoding errors.java.io.IOException - on errors.public void set(java.lang.String name,
java.lang.Object obj)
throws java.io.IOException
set in interface CertAttrSet<Extension>name - the extension name used in the cache.obj - the object to set.java.io.IOException - if the object could not be cached.public java.lang.Object get(java.lang.String name)
throws java.io.IOException
get in interface CertAttrSet<Extension>name - the extension name used in the lookup.java.io.IOException - if named extension is not found.public void delete(java.lang.String name)
throws java.io.IOException
delete in interface CertAttrSet<Extension>name - the extension name used in the lookup.java.io.IOException - if named extension is not found.public java.util.Enumeration<Extension> getElements()
getElements in interface CertAttrSet<Extension>public java.util.Collection<Extension> getAllExtensions()
public java.util.Map<java.lang.String,Extension> getUnparseableExtensions()
public java.lang.String getName()
getName in interface CertAttrSet<Extension>public boolean hasUnsupportedCriticalExtension()
public boolean equals(java.lang.Object other)
other object is an
instanceof CertificateExtensions, then
all the entries are compared with the entries from this.equals in class java.lang.Objectother - the object to test for equality with this
CertificateExtensions.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
Overrides to toString method of Object.
toString in interface CertAttrSet<Extension>toString in class java.lang.ObjectCopyright © 2020. All Rights Reserved.