ee.sk.smartid.rest.dao.InteractionFlow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smart-id-java-client Show documentation
Show all versions of smart-id-java-client Show documentation
Smart-ID Java client is a Java library that can be used for easy integration of the Smart-ID solution to information systems or e-services
package ee.sk.smartid.rest.dao;
import com.fasterxml.jackson.annotation.JsonValue;
public enum InteractionFlow {
DISPLAY_TEXT_AND_PIN("displayTextAndPIN"),
CONFIRMATION_MESSAGE("confirmationMessage"),
VERIFICATION_CODE_CHOICE("verificationCodeChoice"),
CONFIRMATION_MESSAGE_AND_VERIFICATION_CODE_CHOICE("confirmationMessageAndVerificationCodeChoice");
private String code;
InteractionFlow(String code) {
this.code = code;
}
@JsonValue
public String getCode() {
return code;
}
public boolean is(String typeCodeString) {
return this.getCode().equals(typeCodeString);
}
}