Class SimpleUsernamePasswordCredentials
java.lang.Object
ch.tocco.nice2.security.spi.auth.SimpleUsernamePasswordCredentials
- All Implemented Interfaces:
Credentials, LoginCredentials, UsernamePasswordCredentials, Serializable
- Direct Known Subclasses:
ActivateTwoFactorLoginCredentials, InvokerUsernamePasswordCredentials, TwoFactorLoginCredentials
public class SimpleUsernamePasswordCredentials
extends Object
implements UsernamePasswordCredentials, Serializable
Simple
UsernamePasswordCredentials holding information in String objects.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleUsernamePasswordCredentials(String username, @Nullable String password) SimpleUsernamePasswordCredentials(String username, @Nullable String password, @Nullable String captchaToken) -
Method Summary
Methods inherited from interface LoginCredentials
supportsTwoFactorAuthentication, updatePrincipalFieldsMethods inherited from interface UsernamePasswordCredentials
ignoreCaptchaVerification
-
Constructor Details
-
SimpleUsernamePasswordCredentials
-
SimpleUsernamePasswordCredentials
-
-
Method Details
-
getUsername
Description copied from interface:LoginCredentialsReturn the username used for authentication.- Specified by:
getUsernamein interfaceLoginCredentials
-
getPassword
Description copied from interface:UsernamePasswordCredentialsReturn the password specified by the user.- Specified by:
getPasswordin interfaceUsernamePasswordCredentials
-
getCaptchaToken
- Specified by:
getCaptchaTokenin interfaceUsernamePasswordCredentials
-
asList
Returns a modifyable list with this as its only element. -
toString
-
equals
-
hashCode
-