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

com.verisec.frejaeid.client.enums.MinRegistrationLevel Maven / Gradle / Ivy

Go to download

Freja eID Client is a client library aimed to ease integration of relying party back-end systems with Freja eID Relying Party API.

There is a newer version: 2.25.0
Show newest version
package com.verisec.frejaeid.client.enums;

/**
 * Minimum required registration level of a user in order to approve/decline
 * transaction:
 * 
- {@linkplain #BASIC} *
- {@linkplain #EXTENDED} *
- {@linkplain #PLUS} * */ public enum MinRegistrationLevel { BASIC("BASIC"), EXTENDED("EXTENDED"), PLUS("PLUS"); private final String state; private MinRegistrationLevel(String state) { this.state = state; } /** * Returns state of the MinRegistrationLevel constant. * * @return state */ public String getState() { return state; } /** * Returns the MinRegistrationLevel constant of this type with the specified * state. * * @param state The state must match exactly an identifier used to declare * an MinRegistrationLevel constant in this type. (Extraneous whitespace * characters are not permitted.) * @return The MinRegistrationLevel constant with the specified name and * {@code null} if there is no constant with the specified name. */ public static MinRegistrationLevel getByState(String state) { for (MinRegistrationLevel regState : values()) { if (regState.state.equals(state)) { return regState; } } return null; } @Override public String toString() { return "MinRegistrationLevel{" + "state=" + state + '}'; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy