Interface SslPrivateKey


public interface SslPrivateKey
An SSL private key.
  • Method Summary

    Modifier and Type
    Method
    Description
    default byte[]
    Returns an array of bytes that represents the DER-encoded representation of the SSL private key.
    of(byte[] derEncoded)
    Creates an SslPrivateKey instance for the given bytes.
  • Method Details

    • of

      static SslPrivateKey of(byte[] derEncoded)
      Creates an SslPrivateKey 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 given derEncoded bytes are empty
    • derEncodedValue

      default byte[] derEncodedValue()
      Returns an array of bytes that represents the DER-encoded representation of the SSL private key.