public class UserCredentialModel extends Object implements CredentialInput
Modifier and Type | Field and Description |
---|---|
protected String |
algorithm |
static String |
CLIENT_CERT |
protected String |
device |
static String |
HOTP |
static String |
KERBEROS |
protected Map<String,Object> |
notes |
static String |
PASSWORD |
static String |
PASSWORD_HISTORY |
static String |
PASSWORD_TOKEN |
static String |
SECRET |
static String |
TOTP |
protected String |
type |
protected String |
value |
Constructor and Description |
---|
UserCredentialModel() |
Modifier and Type | Method and Description |
---|---|
static UserCredentialModel |
generateSecret() |
String |
getAlgorithm() |
String |
getDevice() |
Object |
getNote(String key) |
String |
getType() |
String |
getValue() |
static UserCredentialModel |
hotp(String key) |
static boolean |
isOtp(String type) |
static UserCredentialModel |
kerberos(String token) |
static UserCredentialModel |
otp(String type,
String key) |
static PasswordUserCredentialModel |
password(String password) |
static PasswordUserCredentialModel |
password(String password,
boolean adminRequest) |
static UserCredentialModel |
passwordToken(String passwordToken) |
void |
removeNote(String key) |
static UserCredentialModel |
secret(String password) |
void |
setAlgorithm(String algorithm) |
void |
setDevice(String device) |
void |
setNote(String key,
String value) |
void |
setType(String type) |
void |
setValue(String value) |
static UserCredentialModel |
totp(String key) |
public static final String PASSWORD
public static final String PASSWORD_HISTORY
public static final String PASSWORD_TOKEN
public static final String SECRET
public static final String TOTP
public static final String HOTP
public static final String CLIENT_CERT
public static final String KERBEROS
protected String type
protected String value
protected String device
protected String algorithm
public static PasswordUserCredentialModel password(String password)
public static PasswordUserCredentialModel password(String password, boolean adminRequest)
public static UserCredentialModel passwordToken(String passwordToken)
public static UserCredentialModel secret(String password)
public static UserCredentialModel otp(String type, String key)
public static UserCredentialModel totp(String key)
public static UserCredentialModel hotp(String key)
public static UserCredentialModel kerberos(String token)
public static UserCredentialModel generateSecret()
public static boolean isOtp(String type)
public String getType()
getType
in interface CredentialInput
public void setType(String type)
public String getValue()
public void setValue(String value)
public String getDevice()
public void setDevice(String device)
public String getAlgorithm()
public void setAlgorithm(String algorithm)
public void removeNote(String key)
Copyright © 2019 JBoss by Red Hat. All rights reserved.