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 SslPrivateKeyof(byte[] derEncoded) Creates anSslPrivateKeyinstance for the given bytes.
-
Method Details
-
of
Creates anSslPrivateKeyinstance 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 givenderEncodedbytes are empty
-
derEncodedValue
default byte[] derEncodedValue()Returns an array of bytes that represents the DER-encoded representation of the SSL private key.
-