Class RSA


  • public class RSA
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RSA()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.security.interfaces.RSAPrivateKey create​(java.security.spec.RSAPrivateKeySpec keyspec)  
      static java.security.interfaces.RSAPublicKey create​(java.security.spec.RSAPublicKeySpec keyspec)  
      static java.security.interfaces.RSAPrivateKey createPrivate​(java.math.BigInteger m, java.math.BigInteger e)  
      static java.security.interfaces.RSAPublicKey createPublic​(java.math.BigInteger m, java.math.BigInteger e)  
      static Pair<java.security.interfaces.RSAPrivateKey,​java.security.interfaces.RSAPublicKey> generate()  
      • Methods inherited from class java.lang.Object

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

      • RSA

        public RSA()
    • Method Detail

      • create

        public static java.security.interfaces.RSAPrivateKey create​(java.security.spec.RSAPrivateKeySpec keyspec)
                                                             throws java.security.spec.InvalidKeySpecException
        Throws:
        java.security.spec.InvalidKeySpecException
      • create

        public static java.security.interfaces.RSAPublicKey create​(java.security.spec.RSAPublicKeySpec keyspec)
                                                            throws java.security.spec.InvalidKeySpecException
        Throws:
        java.security.spec.InvalidKeySpecException
      • createPublic

        public static java.security.interfaces.RSAPublicKey createPublic​(java.math.BigInteger m,
                                                                         java.math.BigInteger e)
                                                                  throws java.security.spec.InvalidKeySpecException
        Throws:
        java.security.spec.InvalidKeySpecException
      • createPrivate

        public static java.security.interfaces.RSAPrivateKey createPrivate​(java.math.BigInteger m,
                                                                           java.math.BigInteger e)
                                                                    throws java.security.spec.InvalidKeySpecException
        Throws:
        java.security.spec.InvalidKeySpecException
      • generate

        public static Pair<java.security.interfaces.RSAPrivateKey,​java.security.interfaces.RSAPublicKey> generate()
                                                                                                                 throws java.security.NoSuchAlgorithmException
        Throws:
        java.security.NoSuchAlgorithmException