public interface AuthInitialize extends CacheCallback
SecurityManager
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 | Field and Description |
---|---|
static String |
SECURITY_PASSWORD |
static String |
SECURITY_USERNAME |
Modifier and Type | Method and Description |
---|---|
default Properties |
getCredentials(Properties securityProps)
Deprecated.
in Geode 1.3. Never called by the product. Use
getCredentials(Properties
securityProps, DistributedMember server, boolean isPeer) |
Properties |
getCredentials(Properties securityProps,
DistributedMember server,
boolean isPeer)
Initialize with the given set of security properties and return the credentials for the
peer/client as properties.
|
default void |
init()
Deprecated.
in Geode 1.5. Never called by the product. Use
init(LogWriter systemLogger,
LogWriter securityLogger) |
default void |
init(LogWriter systemLogger,
LogWriter securityLogger)
Initialize the callback for a client/peer.
|
close
init, initialize
static final String SECURITY_USERNAME
static final String SECURITY_PASSWORD
default void init(LogWriter systemLogger, LogWriter securityLogger) throws AuthenticationFailedException
systemLogger
- LogWriter
for system logssecurityLogger
- LogWriter
for security logsAuthenticationFailedException
- if some exception occurs during the initialization@Deprecated default void init()
init(LogWriter systemLogger,
LogWriter securityLogger)
Properties getCredentials(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
It needs to contain "security-username" and "security-password" if you use
username/password combination as credentials
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@Deprecated default Properties getCredentials(Properties securityProps)
getCredentials(Properties
securityProps, DistributedMember server, boolean isPeer)
securityProps
- the security properties obtained using a call to
DistributedSystem.getSecurityProperties()
that will be used for obtaining the
credentials