Enum CompoundAlgorithm

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ITERATIONCOUNT
      Constant for the default iteration count.
      static java.lang.String PRIVATE_KEY
      Constant for the default private key
      static byte[] SALT
      Constant array for the default contents of salt
    • 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.
      java.lang.String toString()
      static CompoundAlgorithm valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static CompoundAlgorithm[] 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, valueOf
      • Methods inherited from class java.lang.Object

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

      • PBE_WITH_MD5_AND_AES

        public static final CompoundAlgorithm PBE_WITH_MD5_AND_AES
        The enum constant for the 'PBEWithMD5AndAES' algorithm
      • PBE_WITH_MD5_AND_DES

        public static final CompoundAlgorithm PBE_WITH_MD5_AND_DES
        The enum constant for the 'PBEWithMD5AndDES' algorithm
      • PBE_WITH_SHA1_AND_128BIT_AES_CBC_BC

        public static final CompoundAlgorithm PBE_WITH_SHA1_AND_128BIT_AES_CBC_BC
        The enum constant for the 'PBEWITHSHA1AND128BITAES-CBC-BC' algorithm
      • PBE_WITH_SHA1_AND_DES_EDE

        public static final CompoundAlgorithm PBE_WITH_SHA1_AND_DES_EDE
        The enum constant for the 'PBEWithSHA1AndDESede' algorithm
      • PBKDF2_WITH_HMAC_SHA1

        public static final CompoundAlgorithm PBKDF2_WITH_HMAC_SHA1
        The enum constant for the 'PBKDF2WithHmacSHA1' algorithm
      • SHA1_WITH_RSA

        public static final CompoundAlgorithm SHA1_WITH_RSA
        The enum constant for the 'SHA1withRSA' algorithm
      • SHA256_WITH_RSA

        public static final CompoundAlgorithm SHA256_WITH_RSA
        The enum constant for the 'SHA256withRSA' algorithm
      • SHA384_WITH_RSA

        public static final CompoundAlgorithm SHA384_WITH_RSA
        The enum constant for the 'SHA384withRSA' algorithm
      • SHA512_WITH_RSA

        public static final CompoundAlgorithm SHA512_WITH_RSA
        The enum constant for the 'SHA512withRSA' algorithm
    • Field Detail

      • ITERATIONCOUNT

        public static final int ITERATIONCOUNT
        Constant for the default iteration count.
        See Also:
        Constant Field Values
      • PRIVATE_KEY

        public static final java.lang.String PRIVATE_KEY
        Constant for the default private key
        See Also:
        Constant Field Values
      • SALT

        public static final byte[] SALT
        Constant array for the default contents of salt
    • Method Detail

      • values

        public static CompoundAlgorithm[] 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 (CompoundAlgorithm c : CompoundAlgorithm.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CompoundAlgorithm 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()
        Gets the algorithm for encryption or decryption.
        Specified by:
        getAlgorithm in interface Algorithm
        Returns:
        the algorithm
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<CompoundAlgorithm>