| java.lang.Object sun.security.x509.Extension sun.security.x509.SubjectKeyIdentifierExtension
SubjectKeyIdentifierExtension | public class SubjectKeyIdentifierExtension extends Extension implements CertAttrSet(Code) | | Represent the Subject Key Identifier Extension.
This extension, if present, provides a means of identifying the particular
public key used in an application. This extension by default is marked
non-critical.
Extensions are addiitonal attributes which can be inserted in a X509
v3 certificate. For example a "Driving License Certificate" could have
the driving license number as a extension.
Extensions are represented as a sequence of the extension identifier
(Object Identifier), a boolean flag stating whether the extension is to
be treated as being critical and the extension value itself (this is again
a DER encoding of the extension value).
author: Amit Kapoor author: Hemma Prafullchandra version: 1.12 See Also: Extension See Also: CertAttrSet |
Field Summary | |
final public static String | IDENT Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type. | final public static String | KEY_ID | final public static String | NAME Attribute names. |
IDENT | final public static String IDENT(Code) | | Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
|
SubjectKeyIdentifierExtension | public SubjectKeyIdentifierExtension(byte[] octetString) throws IOException(Code) | | Create a SubjectKeyIdentifierExtension with the passed octet string.
The criticality is set to False.
Parameters: octetString - the octet string identifying the key identifier. |
SubjectKeyIdentifierExtension | public SubjectKeyIdentifierExtension(Boolean critical, Object value) throws IOException(Code) | | Create the extension from the passed DER encoded value.
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. |
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 or validity errors. |
encode | public void encode(OutputStream out) throws IOException(Code) | | Write the extension to the OutputStream.
Parameters: out - the OutputStream 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.
|
getName | public String getName()(Code) | | Return the name of this attribute.
|
toString | public String toString()(Code) | | Returns a printable representation.
|
|
|