public class UserCredentialModel extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
algorithm |
static String |
CLIENT_CERT |
protected String |
device |
static String |
HOTP |
static String |
KERBEROS |
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() |
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 UserCredentialModel |
password(String password) |
static UserCredentialModel |
passwordToken(String passwordToken) |
static UserCredentialModel |
secret(String password) |
void |
setAlgorithm(String algorithm) |
void |
setDevice(String device) |
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 UserCredentialModel password(String password)
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()
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)
Copyright © 2016 JBoss by Red Hat. All rights reserved.