public interface SslPrivateKey
Modifier and Type | Method and Description |
---|---|
default byte[] |
derEncodedValue()
Returns an array of bytes that represents the DER-encoded representation of the SSL private
key.
|
static SslPrivateKey |
of(byte[] derEncoded)
Creates an
SslPrivateKey instance for the given bytes. |
static SslPrivateKey of(byte[] derEncoded)
SslPrivateKey
instance for the given bytes.derEncoded
- the DER-encoded representation of the SSL private key. It can be EC or RSA
private keys. Cannot be emptyjava.lang.IllegalArgumentException
- when the given derEncoded
bytes are emptydefault byte[] derEncodedValue()