| java.lang.Object sun.security.x509.Extension sun.security.x509.NetscapeCertTypeExtension
NetscapeCertTypeExtension | public class NetscapeCertTypeExtension extends Extension implements CertAttrSet(Code) | | Represents Netscape Certificate Type Extension.
The details are defined
here .
This extension, if present, defines both the purpose
(e.g., encipherment, signature, certificate signing) and the application
(e.g., SSL, S/Mime or Object Signing of the key contained in the
certificate. This extension has been superseded by IETF PKIX extensions
but is provided here for compatibility reasons.
author: Hemma Prafullchandra version: 1.3 See Also: Extension See Also: CertAttrSet |
IDENT | final public static String IDENT(Code) | | Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
|
NetscapeCertType_Id | public static ObjectIdentifier NetscapeCertType_Id(Code) | | Object identifier for the Netscape-Cert-Type extension.
|
OBJECT_SIGNING | final public static String OBJECT_SIGNING(Code) | | |
OBJECT_SIGNING_CA | final public static String OBJECT_SIGNING_CA(Code) | | |
NetscapeCertTypeExtension | public NetscapeCertTypeExtension(byte[] bitString) throws IOException(Code) | | Create a NetscapeCertTypeExtension with the passed bit settings.
The criticality is set to true.
Parameters: bitString - the bits to be set for the extension. |
NetscapeCertTypeExtension | public NetscapeCertTypeExtension(boolean[] bitString) throws IOException(Code) | | Create a NetscapeCertTypeExtension with the passed bit settings.
The criticality is set to true.
Parameters: bitString - the bits to be set for the extension. |
NetscapeCertTypeExtension | public NetscapeCertTypeExtension(Boolean critical, Object value) throws IOException(Code) | | Create the extension from the passed DER encoded value of the same.
Parameters: critical - true if the extension is to be treated as critical. Parameters: value - Array of DER encoded bytes of the actual value. exception: IOException - on error. |
NetscapeCertTypeExtension | public NetscapeCertTypeExtension()(Code) | | Create a default key usage.
|
decode | public void decode(InputStream in) throws IOException(Code) | | Decode the extension from the InputStream.
Parameters: in - the InputStream to unmarshal the contents from. exception: IOException - on decoding errors. |
encode | public void encode(OutputStream out) throws IOException(Code) | | Write the extension to the DerOutputStream.
Parameters: out - the DerOutputStream to write the extension to. exception: IOException - on encoding errors. |
getElements | public Enumeration getElements()(Code) | | Return an enumeration of names of attributes existing within this
attribute.
|
getKeyUsageMappedBits | public boolean[] getKeyUsageMappedBits()(Code) | | Get a boolean array representing the bits of this extension,
as it maps to the KeyUsage extension.
the bit values of this extension mapped to the bit valuesof the KeyUsage extension as an array of booleans. |
getName | public String getName()(Code) | | Return the name of this attribute.
|
toString | public String toString()(Code) | | Returns a printable representation of the NetscapeCertType.
|
|
|