Class AuthenticationBeanConfiguration.SpringDataGeodeAuthentication
java.lang.Object
org.springframework.data.gemfire.config.annotation.AuthenticationBeanConfiguration.SpringDataGeodeAuthentication
- All Implemented Interfaces:
Authentication<String,
String>
- Enclosing class:
- AuthenticationBeanConfiguration
protected static class AuthenticationBeanConfiguration.SpringDataGeodeAuthentication
extends Object
implements Authentication<String,String>
-
Constructor Summary
ModifierConstructorDescriptionprotected
SpringDataGeodeAuthentication
(Supplier<String> username, Supplier<String> password) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.data.gemfire.config.annotation.support.Authentication
isAuthenticated
-
Constructor Details
-
SpringDataGeodeAuthentication
-
-
Method Details
-
from
@NonNull public static AuthenticationBeanConfiguration.SpringDataGeodeAuthentication from(@NonNull Supplier<String> username, @NonNull Supplier<String> password) -
isRequested
public boolean isRequested()Description copied from interface:Authentication
Determines whether authentication was actually requested. The default implementation determines whether authentication was requested by the presence aAuthentication
andAuthentication
. However, even if authentication was requested, it does not necessarily mean theAuthentication
successfully authenticated.- Specified by:
isRequested
in interfaceAuthentication<String,
String> - Returns:
- a boolean valuing indicating whether authentication was actually requested.
- See Also:
-
getPrincipal
Description copied from interface:Authentication
Returns anObject
identifying the principal being authenticated.- Specified by:
getPrincipal
in interfaceAuthentication<String,
String> - Returns:
- an
Object
identifying the principal being authenticated.
-
getCredentials
Description copied from interface:Authentication
Returns anObject
with credentials that prove the principal is correct and is who they say they are.- Specified by:
getCredentials
in interfaceAuthentication<String,
String> - Returns:
- Returns an
Object
with credentials that prove the principal is correct.
-
toString
-