public class ExtendedKeyUsageExtension extends Extension implements CertAttrSet
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
static java.lang.String |
OID |
static ObjectIdentifier |
OID_CODE_SIGNING |
static int[] |
OID_CODE_SIGNING_STR |
static java.lang.String |
OID_CODESigning |
static ObjectIdentifier |
OID_OCSP_SIGNING |
static int[] |
OID_OCSP_SIGNING_STR |
static java.lang.String |
OID_OCSPSigning |
critical, extensionId, extensionValue| Constructor and Description |
|---|
ExtendedKeyUsageExtension() |
ExtendedKeyUsageExtension(java.lang.Boolean crit,
java.lang.Object byteVal) |
ExtendedKeyUsageExtension(boolean crit,
java.util.Vector<ObjectIdentifier> oids) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOID(ObjectIdentifier oid) |
void |
decode(java.io.InputStream in)
Decodes the attribute in the input stream.
|
void |
delete(java.lang.String name)
Deletes an attribute value from this CertAttrSet.
|
void |
deleteAllOIDs() |
void |
encode(DerOutputStream out)
Write the extension to the DerOutputStream.
|
void |
encode(java.io.OutputStream out)
Encodes the attribute to the output stream in a format
that can be parsed by the
decode method. |
java.lang.Object |
get(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.lang.String |
getName()
Returns the name (identifier) of this CertAttrSet.
|
java.util.Enumeration<ObjectIdentifier> |
getOIDs() |
void |
set(java.lang.String name,
java.lang.Object obj)
Sets an attribute value within this CertAttrSet.
|
void |
setCritical(boolean newValue) |
java.lang.String |
toString()
Returns the Extension in user readable form.
|
clearValue, getExtensionId, getExtensionValue, isCritical, setExtensionId, setExtensionValuepublic static final java.lang.String OID
public static final java.lang.String NAME
public static final java.lang.String OID_OCSPSigning
public static final java.lang.String OID_CODESigning
public static final int[] OID_OCSP_SIGNING_STR
public static final ObjectIdentifier OID_OCSP_SIGNING
public static final int[] OID_CODE_SIGNING_STR
public static final ObjectIdentifier OID_CODE_SIGNING
public ExtendedKeyUsageExtension()
throws java.io.IOException
java.io.IOExceptionpublic ExtendedKeyUsageExtension(boolean crit,
java.util.Vector<ObjectIdentifier> oids)
throws java.io.IOException
java.io.IOExceptionpublic ExtendedKeyUsageExtension(java.lang.Boolean crit,
java.lang.Object byteVal)
throws java.io.IOException
java.io.IOExceptionpublic void setCritical(boolean newValue)
setCritical in class Extensionpublic java.util.Enumeration<ObjectIdentifier> getOIDs()
public void deleteAllOIDs()
public void addOID(ObjectIdentifier oid)
public void encode(DerOutputStream out) throws java.io.IOException
Extensionpublic java.lang.String toString()
ExtensiontoString in interface CertAttrSettoString in class Extensionpublic void decode(java.io.InputStream in)
throws java.security.cert.CertificateException,
java.io.IOException
CertAttrSetdecode in interface CertAttrSetin - the InputStream to read the encoded attribute from.java.security.cert.CertificateException - on decoding or validity errors.java.io.IOException - on other errors.public void encode(java.io.OutputStream out)
throws java.security.cert.CertificateException,
java.io.IOException
CertAttrSetdecode method.encode in interface CertAttrSetout - the OutputStream to encode the attribute to.java.security.cert.CertificateException - on encoding or validity errors.java.io.IOException - on other errors.public void set(java.lang.String name,
java.lang.Object obj)
throws java.security.cert.CertificateException,
java.io.IOException
CertAttrSetset in interface CertAttrSetname - the name of the attribute (e.g. "x509.info.key")obj - the attribute object.java.security.cert.CertificateException - on attribute handling errors.java.io.IOException - on other errors.public java.lang.Object get(java.lang.String name)
throws java.security.cert.CertificateException,
java.io.IOException
CertAttrSetget in interface CertAttrSetname - the name of the attribute to return.java.security.cert.CertificateException - on attribute handling errors.java.io.IOException - on other errors.public java.util.Enumeration<java.lang.String> getAttributeNames()
CertAttrSetgetAttributeNames in interface CertAttrSetpublic java.lang.String getName()
CertAttrSetgetName in interface CertAttrSetpublic void delete(java.lang.String name)
throws java.security.cert.CertificateException,
java.io.IOException
CertAttrSetdelete in interface CertAttrSetname - the name of the attribute to delete.java.security.cert.CertificateException - on attribute handling errors.java.io.IOException - on other errors.