Package com.teamdev.jxbrowser.net.tls
Interface SslPrivateKey
public interface SslPrivateKey
An SSL private key.
-
Method Summary
Modifier and TypeMethodDescriptiondefault byte[]
Returns an array of bytes that represents the DER-encoded representation of the SSL private key.static SslPrivateKey
of
(byte[] derEncoded) Creates anSslPrivateKey
instance for the given bytes.
-
Method Details
-
of
Creates anSslPrivateKey
instance for the given bytes.- Parameters:
derEncoded
- the DER-encoded representation of the SSL private key. It can be EC or RSA private keys. Cannot be empty- Throws:
IllegalArgumentException
- when the givenderEncoded
bytes are empty
-
derEncodedValue
default byte[] derEncodedValue()Returns an array of bytes that represents the DER-encoded representation of the SSL private key.
-