public interface AuthenticationCredentials
For example, in the case of form based authentication, the AuthenticationMethod 'knows' which is the login URL, which are the names of the fields it has to submit for user and password, while the Authenticator is an 'instance' corresponding to an user, which knows it's password and username.
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 parentFieldSeparator)
Encodes the Credentials in a String.
|
ApiResponse |
getApiResponseRepresentation()
Gets an api response that represents the Credentials.
|
boolean |
isConfigured()
Checks if the credentials object is fully configured.
|
boolean isConfigured()
String encode(String parentFieldSeparator)
parentFieldSeparator
. Should be consistent with decode(String)
.parentFieldSeparator
- the parent field separatorvoid decode(String encodedCredentials)
encode(String)
.encodedCredentials
- the encoded credentialsApiResponse getApiResponseRepresentation()