java.lang.Object
com.aquima.interactions.foundation.security.cert.RsaPKCS8Key
All Implemented Interfaces:
Serializable

public final class RsaPKCS8Key extends Object implements Serializable
RsaPKCS8Key. This implementation can import any PKCS#8 format certificate.
Since:
17.1
See Also:
  • Method Details

    • getPrivateKey

      public PrivateKey getPrivateKey()
      Get the private key.
      Returns:
      PrivateKey
    • importFrom

      public static RsaPKCS8Key importFrom(InputStream stream)
      Import a PKCS8 key from the stream.
      Parameters:
      stream - stream to read the key from
      Returns:
      RsaPKCS8Key
      Throws:
      CryptoGraphicException - when the stream is not provided or when the stream could not be read
      CryptoGraphicException - when the stream contains an invalid key