public class OTPCredentialModel extends CredentialModel
| Modifier and Type | Class and Description |
|---|---|
static class |
OTPCredentialModel.SecretEncoding
The supported encodings when reading the raw secret from the storage
|
| 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) |
static OTPCredentialModel |
createTOTP(String secretValue,
int digits,
int period,
String algorithm,
String encoding) |
byte[] |
getDecodedSecret() |
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, shallowClonepublic 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 createTOTP(String secretValue, int digits, int period, String algorithm, String encoding)
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()
public byte[] getDecodedSecret()
Copyright © 2025 JBoss by Red Hat. All rights reserved.