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

public final class RsaX509Key extends Object implements Serializable
RsaX509Key. This implementation can import any X.509 format key.
Since:
17.1
See Also:
  • Method Details

    • getPublicKey

      public PublicKey getPublicKey()
      Get the public key.
      Returns:
      the public key.
    • importFrom

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