Class PasswordBasedKeyDerivationFunction2

java.lang.Object
org.jose4j.jwe.kdf.PasswordBasedKeyDerivationFunction2

public class PasswordBasedKeyDerivationFunction2 extends Object
An implementation of PBKDF2 from RFC 2898 using HMAC as the underlying pseudorandom function.
  • Constructor Details

    • PasswordBasedKeyDerivationFunction2

      public PasswordBasedKeyDerivationFunction2(String hmacAlgorithm)
  • Method Details

    • derive

      public byte[] derive(byte[] password, byte[] salt, int iterationCount, int dkLen) throws JoseException
      Throws:
      JoseException
    • derive

      public byte[] derive(byte[] password, byte[] salt, int iterationCount, int dkLen, String provider) throws JoseException
      Throws:
      JoseException