public class SubjectKeyIDExtension extends X509Extension
The key ID bytes should be obtained from the subject public key using one of the following two methods (or using some other method that produces unique IDs):
id_netscape_ce, id_netscape_ce_type, id_set_ce, id_set_ce_type, isDecoded| Constructor and Description |
|---|
SubjectKeyIDExtension()
Create a new extension with the appropriate OID type.
|
SubjectKeyIDExtension(byte[] keyID)
Creates a new extension with the specified subject key identifier.
|
SubjectKeyIDExtension(byte[] keyID, boolean critical)
Creates a new extension with the specified subject key identifier.
|
SubjectKeyIDExtension(java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getSubjectKeyID()
Gets the subject key ID for this extension.
|
java.lang.String |
toString()
Returns a string representation of this object.
|
getCritical, getType, getValue, input, inputInstance, isRecognized, length, output, readExternal, setCritical, setValue, writeExternalpublic SubjectKeyIDExtension()
Note: An object created using this constructor may not be in a valid state. This constructor is intended primarily for use in conjunction with the X509Extension.input(java.io.InputStream) method.
public SubjectKeyIDExtension(byte[] keyID)
keyID - A byte[] containing the subject key identifier.
public SubjectKeyIDExtension(byte[] keyID,
boolean critical)
keyID - A byte[] containing the subject key identifier.critical - true if this extension is critical, false otherwise.
public SubjectKeyIDExtension(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic byte[] getSubjectKeyID()
public java.lang.String toString()
X509ExtensiontoString in class X509Extension