public final class X509PublicKey extends Object implements PublicKey
serialVersionUID| Constructor and Description |
|---|
X509PublicKey(String algorithm,
byte[] encoded,
byte[] keyBytes) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm()
Returns the name of the algorithm of this key.
|
byte[] |
getEncoded()
Returns the encoded form of this key, or
null if encoding is not
supported by this key. |
String |
getFormat()
Returns the name of the format used to encode this key, or
null
if it can not be encoded. |
String |
toString()
Returns a string containing a concise, human-readable description of this
object.
|
public X509PublicKey(String algorithm, byte[] encoded, byte[] keyBytes)
public String getAlgorithm()
Keynull is returned.getAlgorithm in interface Keynull if the
algorithm is unknown.public String getFormat()
Keynull
if it can not be encoded.public byte[] getEncoded()
Keynull if encoding is not
supported by this key.getEncoded in interface Keynull if encoding is not
supported by this key.public String toString()
ObjectgetClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString method
if you intend implementing your own toString method.