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.
Extension
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean[] | |
| private static final NetscapeCertTypeExtension. | |
| public static final String | |
| public static ObjectIdentifier | NetscapeCertType_Id
Object identifier for the Netscape-Cert-Type extension. |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | NetscapeCertTypeExtension(byte[]
the bits to be set for the extension. bitString)Create a NetscapeCertTypeExtension with the passed bit settings. |
| public | NetscapeCertTypeExtension(boolean[]
the bits to be set for the extension. bitString)Create a NetscapeCertTypeExtension with the passed bit settings. |
| public | NetscapeCertTypeExtension(Boolean
true if the extension is to be treated as critical. critical, Object an array of DER encoded bytes of the actual value. value)Create the extension from the passed DER encoded value of the same. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | encode(DerOutputStream
the DerOutputStream to write the extension to. out)Overrides sun. Implements sun. Write the extension to the DerOutputStream. |
| private void | |
| public boolean | |
| public boolean[] | Returns: the bit values of this extension mapped to the bit values of the KeyUsage extension as an array of booleans.Get a boolean array representing the bits of this extension, as it maps to the KeyUsage extension. |
| public String | |
| private static int | |
| private boolean | |
| private void | |
| public void | |
| public String | toString()
Overrides sun. Returns a printable representation of the NetscapeCertType. |
| bitString | back to summary |
|---|---|
| private boolean[] bitString | |
| mMapData | back to summary |
|---|---|
| private static final NetscapeCertTypeExtension. | |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| NetscapeCertType_Id | back to summary |
|---|---|
| public static ObjectIdentifier NetscapeCertType_Id Object identifier for the Netscape-Cert-Type extension. | |
| OBJECT_SIGNING | back to summary |
|---|---|
| public static final String OBJECT_SIGNING | |
| OBJECT_SIGNING_CA | back to summary |
|---|---|
| public static final String OBJECT_SIGNING_CA | |
| S_MIME | back to summary |
|---|---|
| public static final String S_MIME | |
| S_MIME_CA | back to summary |
|---|---|
| public static final String S_MIME_CA | |
| SSL_CA | back to summary |
|---|---|
| public static final String SSL_CA | |
| SSL_CLIENT | back to summary |
|---|---|
| public static final String SSL_CLIENT | |
| SSL_SERVER | back to summary |
|---|---|
| public static final String SSL_SERVER | |
| NetscapeCertTypeExtension | back to summary |
|---|---|
| public NetscapeCertTypeExtension(byte[] bitString) Create a NetscapeCertTypeExtension with the passed bit settings. The criticality is set to true.
| |
| NetscapeCertTypeExtension | back to summary |
|---|---|
| public NetscapeCertTypeExtension(boolean[] bitString) Create a NetscapeCertTypeExtension with the passed bit settings. The criticality is set to true.
| |
| NetscapeCertTypeExtension | back to summary |
|---|---|
| public NetscapeCertTypeExtension(Boolean critical, Object value) throws IOException Create the extension from the passed DER encoded value of the same.
| |
| NetscapeCertTypeExtension | back to summary |
|---|---|
| public NetscapeCertTypeExtension() Create a default key usage. | |
| encode | back to summary |
|---|---|
| public void encode(DerOutputStream out) Overrides sun. Implements sun. Write the extension to the DerOutputStream.
| |
| encodeThis | back to summary |
|---|---|
| private void encodeThis() | |
| get | back to summary |
|---|---|
| public boolean get(String name) throws IOException Get the attribute value. | |
| getKeyUsageMappedBits | back to summary |
|---|---|
| public boolean[] getKeyUsageMappedBits() Get a boolean array representing the bits of this extension, as it maps to the KeyUsage extension.
| |
| getName | back to summary |
|---|---|
| public String getName() Overrides sun. Return the name of this extension.
| |
| getPosition | back to summary |
|---|---|
| private static int getPosition(String name) throws IOException | |
| isSet | back to summary |
|---|---|
| private boolean isSet(int position) Check if bit is set.
| |
| set | back to summary |
|---|---|
| private void set(int position, boolean val) Set the bit at the specified position. | |
| set | back to summary |
|---|---|
| public void set(String name, Boolean val) throws IOException Set the attribute value. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides sun. Returns a printable representation of the NetscapeCertType. | |
| mName | back to summary |
|---|---|
| pack-priv String mName | |
| mPosition | back to summary |
|---|---|
| pack-priv int mPosition | |
| MapEntry | back to summary |
|---|---|
| pack-priv MapEntry(String name, int position) | |