Package ch.tocco.nice2.security.spi.auth
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
ConstructorDescriptionSimpleUsernamePasswordCredentials
(String username, @Nullable String password) SimpleUsernamePasswordCredentials
(String username, @Nullable String password, @Nullable String captchaToken) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.security.spi.auth.LoginCredentials
supportsTwoFactorAuthentication, updatePrincipalFields
Methods inherited from interface ch.tocco.nice2.security.spi.auth.UsernamePasswordCredentials
ignoreCaptchaVerification
-
Constructor Details
-
SimpleUsernamePasswordCredentials
-
SimpleUsernamePasswordCredentials
-
-
Method Details
-
getUsername
Description copied from interface:LoginCredentials
Return the username used for authentication.- Specified by:
getUsername
in interfaceLoginCredentials
-
getPassword
Description copied from interface:UsernamePasswordCredentials
Return the password specified by the user.- Specified by:
getPassword
in interfaceUsernamePasswordCredentials
-
getCaptchaToken
- Specified by:
getCaptchaToken
in interfaceUsernamePasswordCredentials
-
asList
Returns a modifyable list with this as its only element. -
toString
-
equals
-
hashCode
public int hashCode()
-