All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.labkey.remoteapi.totp.HashingAlgorithm Maven / Gradle / Ivy

Go to download

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy