java.lang.Object | ||
↳ | sun.security.x509.Extension | |
↳ | sun.security.x509.NetscapeCertTypeExtension |
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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | IDENT | Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type. | |||||||||
String | NAME | Attribute names. | |||||||||
String | OBJECT_SIGNING | ||||||||||
String | OBJECT_SIGNING_CA | ||||||||||
String | SSL_CA | ||||||||||
String | SSL_CLIENT | ||||||||||
String | SSL_SERVER | ||||||||||
String | S_MIME | ||||||||||
String | S_MIME_CA |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NetscapeCertType_Id | Object identifier for the Netscape-Cert-Type extension. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
sun.security.x509.Extension
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a NetscapeCertTypeExtension with the passed bit settings.
| |||||||||||
Create a NetscapeCertTypeExtension with the passed bit settings.
| |||||||||||
Create the extension from the passed DER encoded value of the same.
| |||||||||||
Create a default key usage.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Delete the attribute value.
| |||||||||||
Write the extension to the DerOutputStream.
| |||||||||||
Get the attribute value.
| |||||||||||
Return an enumeration of names of attributes existing within this
attribute.
| |||||||||||
Get a boolean array representing the bits of this extension,
as it maps to the KeyUsage extension.
| |||||||||||
Return the name of this attribute.
| |||||||||||
Set the attribute value.
| |||||||||||
Returns a printable representation of the NetscapeCertType.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
sun.security.x509.Extension
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
sun.security.x509.CertAttrSet
|
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.
Object identifier for the Netscape-Cert-Type extension.
Create a NetscapeCertTypeExtension with the passed bit settings. The criticality is set to true.
bitString | the bits to be set for the extension. |
---|
IOException |
---|
Create a NetscapeCertTypeExtension with the passed bit settings. The criticality is set to true.
bitString | the bits to be set for the extension. |
---|
IOException |
---|
Create the extension from the passed DER encoded value of the same.
critical | true if the extension is to be treated as critical. |
---|---|
value | an array of DER encoded bytes of the actual value. |
ClassCastException | if value is not an array of bytes |
---|---|
IOException | on error. |
Create a default key usage.
Write the extension to the DerOutputStream.
out | the DerOutputStream to write the extension to. |
---|
IOException | on encoding errors. |
---|
Return an enumeration of names of attributes existing within this attribute.
Get a boolean array representing the bits of this extension, as it maps to the KeyUsage extension.
Set the attribute value.
name | the name of the attribute (e.g. "x509.info.key") |
---|---|
obj | the attribute object. |
IOException |
---|
Returns a printable representation of the NetscapeCertType.