io.imunity.otp.HashFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unity-server-otp Show documentation
Show all versions of unity-server-otp Show documentation
One-time-password credential
The newest version!
/*
* Copyright (c) 2018 Bixbit - Krzysztof Benedyczak. All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package io.imunity.otp;
public enum HashFunction
{
SHA1("HmacSHA1", 160),
SHA256("HmacSHA256", 256),
SHA512("HmacSHA512", 512);
public final String alg;
final int bitLength;
private HashFunction(String alg, int bitLength)
{
this.alg = alg;
this.bitLength = bitLength;
}
}