Class KeyGenAlgorithm

  • Direct Known Subclasses:
    PBEAlgorithm

    public class KeyGenAlgorithm
    extends Algorithm
    Algorithms that can be used for generating symmetric keys.
    • Field Detail

      • PBA_SHA1_HMAC

        @Deprecated(since="5.0.1",
                    forRemoval=true)
        public static final KeyGenAlgorithm PBA_SHA1_HMAC
        Deprecated, for removal: This API element is subject to removal in a future version.
      • SHA1_HMAC

        @Deprecated(since="5.0.1",
                    forRemoval=true)
        public static final KeyGenAlgorithm SHA1_HMAC
        Deprecated, for removal: This API element is subject to removal in a future version.
      • SP800_108_COUNTER_KDF

        public static final KeyGenAlgorithm SP800_108_COUNTER_KDF
      • SP800_108_FEEDBACK_KDF

        public static final KeyGenAlgorithm SP800_108_FEEDBACK_KDF
      • SP800_108_DOUBLE_PIPELINE_KDF

        public static final KeyGenAlgorithm SP800_108_DOUBLE_PIPELINE_KDF
      • NSS_SP800_108_COUNTER_KDF_DERIVE_DATA

        public static final KeyGenAlgorithm NSS_SP800_108_COUNTER_KDF_DERIVE_DATA
      • NSS_SP800_108_FEEDBACK_KDF_DERIVE_DATA

        public static final KeyGenAlgorithm NSS_SP800_108_FEEDBACK_KDF_DERIVE_DATA
      • NSS_SP800_108_DOUBLE_PIPELINE_KDF_DERIVE_DATA

        public static final KeyGenAlgorithm NSS_SP800_108_DOUBLE_PIPELINE_KDF_DERIVE_DATA
    • Method Detail

      • fromOID

        public static KeyGenAlgorithm fromOID​(OBJECT_IDENTIFIER oid)
                                       throws java.security.NoSuchAlgorithmException
        Throws:
        java.security.NoSuchAlgorithmException
      • isValidStrength

        public boolean isValidStrength​(int strength)
        Parameters:
        strength - Key strength.
        Returns:
        true if the given strength is valid for this key generation algorithm. Note that PBE algorithms require PBEParameterSpecs rather than strengths. It is the responsibility of the caller to verify this.