public class UserCredentialModel extends Object implements CredentialInput
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_CERT |
static String |
HOTP
Deprecated.
|
static String |
KERBEROS |
protected Map<String,Object> |
notes |
static String |
PASSWORD
Deprecated.
|
static String |
PASSWORD_HISTORY
Deprecated.
|
static String |
PASSWORD_TOKEN
Deprecated.
|
static String |
SECRET |
static String |
TOTP
Deprecated.
|
Constructor and Description |
---|
UserCredentialModel() |
UserCredentialModel(String credentialId,
String type,
String challengeResponse) |
UserCredentialModel(String credentialId,
String type,
String challengeResponse,
boolean adminRequest) |
@Deprecated public static final String PASSWORD
@Deprecated public static final String PASSWORD_HISTORY
@Deprecated public static final String TOTP
@Deprecated public static final String HOTP
@Deprecated public static final String PASSWORD_TOKEN
public static final String SECRET
public static final String KERBEROS
public static final String CLIENT_CERT
public UserCredentialModel()
public UserCredentialModel(String credentialId, String type, String challengeResponse)
public static PasswordUserCredentialModel password(String password)
public static PasswordUserCredentialModel password(String password, boolean adminRequest)
@Deprecated public static UserCredentialModel passwordToken(String passwordToken)
public static UserCredentialModel otp(String type, String key)
type
- must be "totp" or "hotp"key
- public static UserCredentialModel totp(String key)
public static UserCredentialModel hotp(String key)
public static UserCredentialModel secret(String password)
public static UserCredentialModel kerberos(String token)
public static UserCredentialModel generateSecret()
public String getCredentialId()
getCredentialId
in interface CredentialInput
public String getType()
getType
in interface CredentialInput
public void setType(String type)
public String getChallengeResponse()
getChallengeResponse
in interface CredentialInput
public boolean isAdminRequest()
@Deprecated public static boolean isOtp(String type)
public String getValue()
getChallengeResponse()
insteadpublic 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 © 2021 JBoss by Red Hat. All rights reserved.