public class OTPCredentialModel extends CredentialModel
Modifier and Type | Field and Description |
---|---|
static String |
HOTP |
static String |
TOTP |
static String |
TYPE |
CLIENT_CERT, KERBEROS, OTP, PASSWORD, PASSWORD_HISTORY, PASSWORD_TOKEN, SECRET
Modifier and Type | Method and Description |
---|---|
static OTPCredentialModel |
createFromCredentialModel(CredentialModel credentialModel) |
static OTPCredentialModel |
createFromPolicy(RealmModel realm,
String secretValue) |
static OTPCredentialModel |
createFromPolicy(RealmModel realm,
String secretValue,
String userLabel) |
static OTPCredentialModel |
createHOTP(String secretValue,
int digits,
int counter,
String algorithm) |
static OTPCredentialModel |
createTOTP(String secretValue,
int digits,
int period,
String algorithm) |
OTPCredentialData |
getOTPCredentialData() |
OTPSecretData |
getOTPSecretData() |
void |
updateCounter(int counter) |
comparingByStartDateDesc, getAlgorithm, getConfig, getCounter, getCreatedDate, getCredentialData, getDevice, getDigits, getHashIterations, getId, getPeriod, getSalt, getSecretData, getType, getUserLabel, getValue, setAlgorithm, setConfig, setCounter, setCreatedDate, setCredentialData, setDevice, setDigits, setHashIterations, setId, setPeriod, setSalt, setSecretData, setType, setUserLabel, setValue, shallowClone
public static final String TYPE
public static final String TOTP
public static final String HOTP
public static OTPCredentialModel createTOTP(String secretValue, int digits, int period, String algorithm)
public static OTPCredentialModel createHOTP(String secretValue, int digits, int counter, String algorithm)
public static OTPCredentialModel createFromPolicy(RealmModel realm, String secretValue)
public static OTPCredentialModel createFromPolicy(RealmModel realm, String secretValue, String userLabel)
public static OTPCredentialModel createFromCredentialModel(CredentialModel credentialModel)
public void updateCounter(int counter)
public OTPCredentialData getOTPCredentialData()
public OTPSecretData getOTPSecretData()
Copyright © 2020 JBoss by Red Hat. All rights reserved.