Class ExtendedKeyUsageExtension
java.lang.Object
org.mozilla.jss.netscape.security.x509.Extension
org.mozilla.jss.netscape.security.extensions.ExtendedKeyUsageExtension
- All Implemented Interfaces:
Serializable,CertAttrSet
This represents the extended key usage extension.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate byte[]static final Stringstatic final Stringstatic final ObjectIdentifierstatic final ObjectIdentifierstatic final int[]Deprecated, for removal: This API element is subject to removal in a future version.This will be removed to avoid duplicationsstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.This will be removed to avoid duplicationsstatic final ObjectIdentifierstatic final ObjectIdentifierstatic final ObjectIdentifierstatic final ObjectIdentifierstatic final int[]Deprecated, for removal: This API element is subject to removal in a future version.This will be removed to avoid duplicationsstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.This will be removed to avoid duplicationsstatic final ObjectIdentifierprivate ArrayList<ObjectIdentifier>private static final longFields inherited from class org.mozilla.jss.netscape.security.x509.Extension
critical, extensionId, extensionValue -
Constructor Summary
ConstructorsConstructorDescriptionExtendedKeyUsageExtension(boolean crit, Vector<ObjectIdentifier> oids) ExtendedKeyUsageExtension(Boolean crit, Object byteVal) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOID(ObjectIdentifier oid) voiddecode(InputStream in) Decodes the attribute in the input stream.private voidvoidDeletes an attribute value from this CertAttrSet.voidvoidencode(OutputStream out) Encodes the attribute to the output stream in a format that can be parsed by thedecodemethod.voidencode(DerOutputStream out) Write the extension to the DerOutputStream.private voidGets an attribute value for this CertAttrSet.Returns an enumeration of the names of the attributes existing within this attribute.getName()Returns the name (identifier) of this CertAttrSet.getOIDs()voidSets an attribute value within this CertAttrSet.voidsetCritical(boolean newValue) toString()Returns the Extension in user readable form.Methods inherited from class org.mozilla.jss.netscape.security.x509.Extension
clearValue, getExtensionId, getExtensionValue, isCritical, setExtensionId, setExtensionValue
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
logger
private static final org.slf4j.Logger logger -
OID
- See Also:
-
NAME
- See Also:
-
OID_OCSPSigning
Deprecated, for removal: This API element is subject to removal in a future version.This will be removed to avoid duplications- See Also:
-
OID_CODESigning
Deprecated, for removal: This API element is subject to removal in a future version.This will be removed to avoid duplications- See Also:
-
OID_IKE_INTERMEDIATE
-
OID_ID_KP_IPSEC_IKE
-
OID_OCSP_SIGNING_STR
Deprecated, for removal: This API element is subject to removal in a future version.This will be removed to avoid duplications -
OID_OCSP_SIGNING
-
OID_EMAIL_PROTECTION
-
OID_CODE_SIGNING_STR
Deprecated, for removal: This API element is subject to removal in a future version.This will be removed to avoid duplications -
OID_CODE_SIGNING
-
OID_CLIENT_AUTH
-
OID_SERVER_AUTH
-
oidSet
-
mCached
private byte[] mCached
-
-
Constructor Details
-
ExtendedKeyUsageExtension
- Throws:
IOException
-
ExtendedKeyUsageExtension
- Throws:
IOException
-
ExtendedKeyUsageExtension
- Throws:
IOException
-
-
Method Details
-
setCritical
public void setCritical(boolean newValue) - Overrides:
setCriticalin classExtension
-
getOIDs
-
deleteAllOIDs
public void deleteAllOIDs() -
addOID
-
encode
Description copied from class:ExtensionWrite the extension to the DerOutputStream.- Overrides:
encodein classExtension- Parameters:
out- the DerOutputStream to write the extension to.- Throws:
IOException- on encoding errors
-
toString
Description copied from class:ExtensionReturns the Extension in user readable form.- Specified by:
toStringin interfaceCertAttrSet- Overrides:
toStringin classExtension- Returns:
- value of this certificate attribute in printable form.
-
decode
Description copied from interface:CertAttrSetDecodes the attribute in the input stream.- Specified by:
decodein interfaceCertAttrSet- Parameters:
in- the InputStream to read the encoded attribute from.- Throws:
CertificateException- on decoding or validity errors.IOException- on other errors.
-
encode
Description copied from interface:CertAttrSetEncodes the attribute to the output stream in a format that can be parsed by thedecodemethod.- Specified by:
encodein interfaceCertAttrSet- Parameters:
out- the OutputStream to encode the attribute to.- Throws:
CertificateException- on encoding or validity errors.IOException- on other errors.
-
set
Description copied from interface:CertAttrSetSets an attribute value within this CertAttrSet.- Specified by:
setin interfaceCertAttrSet- Parameters:
name- the name of the attribute (e.g. "x509.info.key")obj- the attribute object.- Throws:
CertificateException- on attribute handling errors.IOException- on other errors.
-
get
Description copied from interface:CertAttrSetGets an attribute value for this CertAttrSet.- Specified by:
getin interfaceCertAttrSet- Parameters:
name- the name of the attribute to return.- Returns:
- attribute value
- Throws:
CertificateException- on attribute handling errors.IOException- on other errors.
-
getAttributeNames
Description copied from interface:CertAttrSetReturns an enumeration of the names of the attributes existing within this attribute.- Specified by:
getAttributeNamesin interfaceCertAttrSet- Returns:
- an enumeration of the attribute names.
-
getName
Description copied from interface:CertAttrSetReturns the name (identifier) of this CertAttrSet.- Specified by:
getNamein interfaceCertAttrSet- Returns:
- the name of this CertAttrSet.
-
delete
Description copied from interface:CertAttrSetDeletes an attribute value from this CertAttrSet.- Specified by:
deletein interfaceCertAttrSet- Parameters:
name- the name of the attribute to delete.- Throws:
CertificateException- on attribute handling errors.IOException- on other errors.
-
decodeThis
- Throws:
IOException
-
encodeExtValue
- Throws:
IOException
-