public interface AuthInitialize extends CacheCallback
Authenticator
has been configured on the
server/locator side respectively. Implementations should register name of the static creation
function (that returns an object of the class) as the security-peer-auth-init system
property on peers and as the security-client-auth-init system property on clients.Modifier and Type | Method and Description |
---|---|
default java.util.Properties |
getCredentials(java.util.Properties securityProps)
Implement this since Geode1.0
|
java.util.Properties |
getCredentials(java.util.Properties securityProps,
DistributedMember server,
boolean isPeer)
Deprecated.
since Geode 1.0, use getCredentials(Properties). When using Integrated security,
all members, peer/client will use the same credentials.
|
default void |
init() |
void |
init(LogWriter systemLogger,
LogWriter securityLogger)
Deprecated.
since Geode 1.0, use init()
|
close
void init(LogWriter systemLogger, LogWriter securityLogger) throws AuthenticationFailedException
systemLogger
- LogWriter
for system logssecurityLogger
- LogWriter
for security logsAuthenticationFailedException
- if some exception occurs during the initializationdefault void init()
java.util.Properties getCredentials(java.util.Properties securityProps, DistributedMember server, boolean isPeer) throws AuthenticationFailedException
securityProps
- 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
AuthenticationFailedException
- in case of failure to obtain the credentialsdefault java.util.Properties getCredentials(java.util.Properties securityProps)
securityProps
-