org.labkey.remoteapi.totp.HashingAlgorithm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of labkey-client-api Show documentation
Show all versions of labkey-client-api Show documentation
The client-side library for Java developers is a separate JAR from the LabKey Server code base. It can be used by any Java program, including another Java web application.
The newest version!
/*
* Copyright (c) 2019 Sam Stevens
*
* Licensed under the MIT License
*
* https://github.com/samdjstevens v1.7.1
*/
package org.labkey.remoteapi.totp;
public enum HashingAlgorithm {
SHA1("HmacSHA1", "SHA1"), //default
SHA256("HmacSHA256", "SHA256"),
SHA512("HmacSHA512", "SHA512");
private final String hmacAlgorithm;
private final String friendlyName;
HashingAlgorithm(String hmacAlgorithm, String friendlyName) {
this.hmacAlgorithm = hmacAlgorithm;
this.friendlyName = friendlyName;
}
public String getHmacAlgorithm() {
return hmacAlgorithm;
}
public String getFriendlyName() {
return friendlyName;
}
}