|
Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10674-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cert.X509Extension
oracle.security.crypto.cert.ext.SubjectKeyIDExtension
public class SubjectKeyIDExtension
Represents the certificate extension Subject Key Identifier from RFC 2459. This extension MUST NOT be critical.
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):
Field Summary |
---|
Fields inherited from class oracle.security.crypto.cert.X509Extension |
---|
id_netscape_ce, id_netscape_ce_type, id_set_ce, id_set_ce_type, isDecoded |
Constructor Summary | |
---|---|
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) |
Method Summary | |
---|---|
byte[] |
getSubjectKeyID() Gets the subject key ID for this extension. |
java.lang.String |
toString() Returns a string representation of this object. |
Methods inherited from class oracle.security.crypto.cert.X509Extension |
---|
getCritical, getType, getValue, input, inputInstance, isRecognized, length, output, readExternal, setCritical, setValue, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public 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.IOException
Method Detail |
---|
public byte[] getSubjectKeyID()
public java.lang.String toString()
X509Extension
toString
in class X509Extension
|
Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10674-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |