Class EncryptionTool.RSAKeyPair

  • Enclosing class:
    EncryptionTool

    public static class EncryptionTool.RSAKeyPair
    extends java.lang.Object
    RSA key pair
    • Constructor Summary

      Constructors 
      Constructor Description
      RSAKeyPair​(java.lang.String privateKey, java.lang.String publicKey)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.security.interfaces.RSAPrivateKey getPrivateKey()
      Getprivate key
      java.security.interfaces.RSAPublicKey getPublicKey()
      Get public key
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RSAKeyPair

        public RSAKeyPair​(java.lang.String privateKey,
                          java.lang.String publicKey)
                   throws EncryptionException
        Constructor
        Parameters:
        privateKey - Private key as base64-encoded PKCS8 string
        publicKey - Public key as Base64-encoded X509 string
        Throws:
        EncryptionException
    • Method Detail

      • getPrivateKey

        public java.security.interfaces.RSAPrivateKey getPrivateKey()
        Getprivate key
        Returns:
        Private Key
      • getPublicKey

        public java.security.interfaces.RSAPublicKey getPublicKey()
        Get public key
        Returns:
        Public key