public class UserPasswordWithExtraPropsAuthInit extends UserPasswordAuthInit
AuthInitialize implementation that obtains the user name and password as the
credentials from the given set of properties. If keep-extra-props property exits, it will copy
rest of the properties provided in getCredential props argument will also be copied as new
credentials.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXTRA_PROPS |
static java.lang.String |
SECURITY_PREFIX |
PASSWORD, securityLogWriter, systemLogWriter, USER_NAMESECURITY_PASSWORD, SECURITY_USERNAME| Constructor and Description |
|---|
UserPasswordWithExtraPropsAuthInit() |
| Modifier and Type | Method and Description |
|---|---|
static AuthInitialize |
create() |
java.util.Properties |
getCredentials(java.util.Properties securityProperties,
DistributedMember server,
boolean isPeer)
Initialize with the given set of security properties and return the credentials for the
peer/client as properties.
|
close, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCredentials, initinit, initializepublic static final java.lang.String SECURITY_PREFIX
public static final java.lang.String EXTRA_PROPS
public static AuthInitialize create()
public java.util.Properties getCredentials(java.util.Properties securityProperties,
DistributedMember server,
boolean isPeer)
throws AuthenticationFailedException
AuthInitializegetCredentials in interface AuthInitializegetCredentials in class UserPasswordAuthInitsecurityProperties - the security properties obtained using a call to
DistributedSystem.getSecurityProperties() that will be used for obtaining the
credentialsserver - the DistributedMember object of the server/group-coordinator to which
connection is being attemptedisPeer - true when this is invoked for peer initialization and false when invoked for
client initializationserver
It needs to contain "security-username" and "security-password"
When using Integrated security, all members, peer/client will use the same credentials.
but we still need to use these params to support the old authenticatorAuthenticationFailedException - in case of failure to obtain the credentials