public class X509EncodedKeySpec extends EncodedKeySpec
| Constructor and Description |
|---|
X509EncodedKeySpec(byte[] encodedKey)
Constructs a new X509EncodedKeySpec with the specified encoded key.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncoded()
Gets the encoded key in byte format.
|
String |
getFormat()
Returns the name of the key format used which is "X.509"
|
public X509EncodedKeySpec(byte[] encodedKey)
encodedKey - A key to store, assumed to be "X.509"public byte[] getEncoded()
getEncoded in class EncodedKeySpecpublic final String getFormat()
getFormat in class EncodedKeySpec