src/org/kocakosm/pitaya/security/KDFs.java
public static KDF pbkdf2(Algorithm<MAC> mac, int iterationCount,
		int dkLen)
	{
		return new PBKDF2(mac, iterationCount, dkLen);
	}
public static KDF pbkdf2(Algorithm<MAC> mac, int iterationCount,
		int dkLen)
	{
		return new PBKDF2(mac, iterationCount, dkLen);
	}
public static KDF pbkdf2 ( Algorithm < MAC > mac , int iterationCount , int dkLen ) { return new PBKDF2 ( mac , iterationCount , dkLen ) ; }
Creates and returns a new immutable {@code KDF} instance implementing
the PBKDF2 algorithm (RFC 2898).

@param mac the MAC algorithm to use.
@param iterationCount the desired number of iterations.
@param dkLen the desired length for derived keys, in bytes.

@return the created {@code KDF} instance.

@throws NullPointerException if {@code mac} is {@code null}.
@throws IllegalArgumentException if {@code iterationCount} or
{@code dkLen} is negative, or if the MAC algorithm is unknown.
Creates and returns a new immutable { @code KDF } instance implementing the PBKDF2 algorithm ( RFC 2898 ) .