Enum KeyPairWithModeAndPaddingAlgorithm

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AES_CBC_PKCS5Padding
      The enum constant with the 'AES' algorithm with mode 'CBC' and padding 'PKCS5Padding' that results in 'AES/CBC/PKCS5Padding'.
      DESede_CBC_PKCS5Padding
      The enum constant with the 'DESede' algorithm with mode 'CBC' and padding 'PKCS5Padding' that results in 'DESede/CBC/PKCS5Padding'.
      RSA_ECB_OAEPWithSHA_1AndMGF1Padding
      The enum constant with the 'RSA' algorithm with mode 'ECB' and padding 'OAEPWithSHA-1AndMGF1Padding' that results in 'RSA/ECB/OAEPWithSHA-1AndMGF1Padding'.
      RSA_ECB_OAEPWithSHA_256AndMGF1Padding
      The enum constant with the 'RSA' algorithm with mode 'ECB' and padding 'OAEPWithSHA-256AndMGF1Padding' that results in 'RSA/ECB/OAEPWithSHA-256AndMGF1Padding'.
      RSA_ECB_OAEPWithSHA1AndMGF1Padding
      The enum constant with the 'RSA' algorithm with mode 'ECB' and padding 'OAEPWithSHA1AndMGF1Padding' that results in 'RSA/ECB/OAEPWithSHA1AndMGF1Padding'.
      RSA_ECB_OAEPWithSHA256AndMGF1Padding
      The enum constant with the 'RSA' algorithm with mode 'ECB' and padding 'OAEPWithSHA256AndMGF1Padding' that results in 'RSA/ECB/OAEPWithSHA256AndMGF1Padding'.
      RSA_ECB_PKCS1PADDING
      The enum constant with the 'RSA' algorithm with mode 'ECB' and padding 'PKCS1Padding' that results in 'RSA/ECB/PKCS1Padding'.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAlgorithm()
      Gets the algorithm for encryption or decryption.
      static KeyPairWithModeAndPaddingAlgorithm valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static KeyPairWithModeAndPaddingAlgorithm[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • AES_CBC_PKCS5Padding

        public static final KeyPairWithModeAndPaddingAlgorithm AES_CBC_PKCS5Padding
        The enum constant with the 'AES' algorithm with mode 'CBC' and padding 'PKCS5Padding' that results in 'AES/CBC/PKCS5Padding'.
      • DESede_CBC_PKCS5Padding

        public static final KeyPairWithModeAndPaddingAlgorithm DESede_CBC_PKCS5Padding
        The enum constant with the 'DESede' algorithm with mode 'CBC' and padding 'PKCS5Padding' that results in 'DESede/CBC/PKCS5Padding'.
      • RSA_ECB_OAEPWithSHA_1AndMGF1Padding

        public static final KeyPairWithModeAndPaddingAlgorithm RSA_ECB_OAEPWithSHA_1AndMGF1Padding
        The enum constant with the 'RSA' algorithm with mode 'ECB' and padding 'OAEPWithSHA-1AndMGF1Padding' that results in 'RSA/ECB/OAEPWithSHA-1AndMGF1Padding'.
      • RSA_ECB_OAEPWithSHA_256AndMGF1Padding

        public static final KeyPairWithModeAndPaddingAlgorithm RSA_ECB_OAEPWithSHA_256AndMGF1Padding
        The enum constant with the 'RSA' algorithm with mode 'ECB' and padding 'OAEPWithSHA-256AndMGF1Padding' that results in 'RSA/ECB/OAEPWithSHA-256AndMGF1Padding'.
      • RSA_ECB_OAEPWithSHA1AndMGF1Padding

        public static final KeyPairWithModeAndPaddingAlgorithm RSA_ECB_OAEPWithSHA1AndMGF1Padding
        The enum constant with the 'RSA' algorithm with mode 'ECB' and padding 'OAEPWithSHA1AndMGF1Padding' that results in 'RSA/ECB/OAEPWithSHA1AndMGF1Padding'.
      • RSA_ECB_OAEPWithSHA256AndMGF1Padding

        public static final KeyPairWithModeAndPaddingAlgorithm RSA_ECB_OAEPWithSHA256AndMGF1Padding
        The enum constant with the 'RSA' algorithm with mode 'ECB' and padding 'OAEPWithSHA256AndMGF1Padding' that results in 'RSA/ECB/OAEPWithSHA256AndMGF1Padding'.
      • RSA_ECB_PKCS1PADDING

        public static final KeyPairWithModeAndPaddingAlgorithm RSA_ECB_PKCS1PADDING
        The enum constant with the 'RSA' algorithm with mode 'ECB' and padding 'PKCS1Padding' that results in 'RSA/ECB/PKCS1Padding'.
    • Method Detail

      • values

        public static KeyPairWithModeAndPaddingAlgorithm[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (KeyPairWithModeAndPaddingAlgorithm c : KeyPairWithModeAndPaddingAlgorithm.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static KeyPairWithModeAndPaddingAlgorithm valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getAlgorithm

        public java.lang.String getAlgorithm()
        Description copied from interface: Algorithm
        Gets the algorithm for encryption or decryption.
        Specified by:
        getAlgorithm in interface Algorithm
        Returns:
        the algorithm