Class PKCS8Certificate

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

public final class PKCS8Certificate extends Object implements Serializable
PKCS8Key. This implementation is not a full implementation of the Certificate, but it can import any PKCS#8 format certificate.
Since:
5.1
Author:
m.hesselink
See Also:
  • Method Details

    • getPrivateKey

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

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