Extensions are additional attributes which can be inserted in a X509 v3 certificate. For example a "Driving License Certificate" could have the driving license number as an 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).
Extension
Modifier and Type | Field and Description |
---|---|
private KeyIdentifier | |
public static final String |
Access | Constructor and Description |
---|---|
public | SubjectKeyIdentifierExtension(byte[]
the octet string identifying the key identifier. octetString)Create a SubjectKeyIdentifierExtension with the passed octet string. |
public | SubjectKeyIdentifierExtension(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. |
Modifier and Type | Method and Description |
---|---|
public void | encode(DerOutputStream
the DerOutputStream to write the extension to. out)Overrides sun. Implements sun. |
private void | |
public KeyIdentifier | |
public String | |
public String |
id | back to summary |
---|---|
private KeyIdentifier id |
NAME | back to summary |
---|---|
public static final String NAME |
SubjectKeyIdentifierExtension | back to summary |
---|---|
public SubjectKeyIdentifierExtension(byte[] octetString) Create a SubjectKeyIdentifierExtension with the passed octet string. The criticality is set to False.
|
SubjectKeyIdentifierExtension | back to summary |
---|---|
public SubjectKeyIdentifierExtension(Boolean critical, Object value) throws IOException Create the extension from the passed DER encoded value.
|
encode | back to summary |
---|---|
public void encode(DerOutputStream out) Overrides sun. Implements sun. Write the extension to the OutputStream.
|
encodeThis | back to summary |
---|---|
private void encodeThis() |
getKeyIdentifier | back to summary |
---|---|
public KeyIdentifier getKeyIdentifier() |
getName | back to summary |
---|---|
public String getName() Overrides sun. Return the name of this extension.
|
toString | back to summary |
---|---|
public String toString() Overrides sun. Returns a printable representation.
|