EncodedKeySpecpublic abstract class EncodedKeySpec extends Object implements KeySpecThe abstract key specification for a public or a private key in encoded
format. |
Fields Summary |
---|
private final byte[] | encodedKey |
Constructors Summary |
---|
public EncodedKeySpec(byte[] encodedKey)Creates a new {@code EncodedKeySpec} with the specified encoded key bytes.
// Defensively copies parameter
// to prevent subsequent modification
this.encodedKey = new byte[encodedKey.length];
System.arraycopy(encodedKey, 0,
this.encodedKey, 0, this.encodedKey.length);
|
Methods Summary |
---|
public byte[] | getEncoded()Returns the encoded key bytes.
// Defensively copies private array
// to prevent subsequent modification
byte[] ret = new byte[encodedKey.length];
System.arraycopy(encodedKey, 0, ret, 0, ret.length);
return ret;
| public abstract java.lang.String | getFormat()Returns the name of the encoding format of this encoded key
specification.
|
|