public class UsernamePasswordAuthenticationCredentials extends Object implements AuthenticationCredentials
Modifier and Type | Class and Description |
---|---|
protected static class |
UsernamePasswordAuthenticationCredentials.UsernamePasswordAuthenticationCredentialsOptionsPanel
The Options Panel used for configuring a
UsernamePasswordAuthenticationCredentials . |
Constructor and Description |
---|
UsernamePasswordAuthenticationCredentials() |
UsernamePasswordAuthenticationCredentials(String username,
String password) |
Modifier and Type | Method and Description |
---|---|
void |
decode(String encodedCredentials)
Decodes the internal values of the Authentication Credentials from an encoded string and
fills in the current object.
|
String |
encode(String parentStringSeparator)
Encodes the Credentials in a String.
|
ApiResponse |
getApiResponseRepresentation()
Gets an api response that represents the Credentials.
|
String |
getPassword()
Gets the password.
|
static ApiDynamicActionImplementor |
getSetCredentialsForUserApiAction(AuthenticationMethodType methodType)
Gets the api action for setting a
UsernamePasswordAuthenticationCredentials for an
User. |
String |
getUsername()
Gets the username.
|
boolean |
isConfigured()
Checks if the credentials object is fully configured.
|
public UsernamePasswordAuthenticationCredentials()
public String getUsername()
public String getPassword()
public boolean isConfigured()
AuthenticationCredentials
isConfigured
in interface AuthenticationCredentials
public String encode(String parentStringSeparator)
AuthenticationCredentials
parentFieldSeparator
. Should be consistent with AuthenticationCredentials.decode(String)
.encode
in interface AuthenticationCredentials
parentStringSeparator
- the parent field separatorpublic void decode(String encodedCredentials)
AuthenticationCredentials
AuthenticationCredentials.encode(String)
.decode
in interface AuthenticationCredentials
encodedCredentials
- the encoded credentialspublic ApiResponse getApiResponseRepresentation()
AuthenticationCredentials
getApiResponseRepresentation
in interface AuthenticationCredentials
public static ApiDynamicActionImplementor getSetCredentialsForUserApiAction(AuthenticationMethodType methodType)
UsernamePasswordAuthenticationCredentials
for an
User.methodType
- the method type for which this is called