Class RSAKeyAlgorithm


  • public class RSAKeyAlgorithm
    extends KeyAlgorithm<java.security.interfaces.RSAPublicKey,​java.security.interfaces.RSAPrivateKey>
    • Constructor Detail

      • RSAKeyAlgorithm

        public RSAKeyAlgorithm()
    • Method Detail

      • encodeSignature

        public byte[] encodeSignature​(byte[] signature)
                               throws java.io.IOException
        Specified by:
        encodeSignature in class KeyAlgorithm<java.security.interfaces.RSAPublicKey,​java.security.interfaces.RSAPrivateKey>
        Throws:
        java.io.IOException
      • decodeSignature

        public byte[] decodeSignature​(byte[] encodedSignature)
                               throws java.io.IOException
        Specified by:
        decodeSignature in class KeyAlgorithm<java.security.interfaces.RSAPublicKey,​java.security.interfaces.RSAPrivateKey>
        Throws:
        java.io.IOException
      • encodePublicKey

        public byte[] encodePublicKey​(java.security.interfaces.RSAPublicKey publicKey)
                               throws java.io.IOException
        Specified by:
        encodePublicKey in class KeyAlgorithm<java.security.interfaces.RSAPublicKey,​java.security.interfaces.RSAPrivateKey>
        Throws:
        java.io.IOException
      • decodePublicKey

        public java.security.interfaces.RSAPublicKey decodePublicKey​(byte[] encodedPublicKey)
                                                              throws java.io.IOException
        Specified by:
        decodePublicKey in class KeyAlgorithm<java.security.interfaces.RSAPublicKey,​java.security.interfaces.RSAPrivateKey>
        Throws:
        java.io.IOException