SecurityManager
instead@Deprecated public interface Authenticator extends CacheCallback
security-peer-authenticator
system property with all the locators in the distributed system for peer authentication, and as
security-client-authenticator
for client authentication. For P2P an object is
initialized on the group coordinator for each member during the
DistributedSystem.connect(Properties)
call of a new member. For client-server, an object
of this class is created for each connection during the client-server handshake.
The static creation function should have the following signature:
public static Authenticator [method-name]();
i.e. it should be a zero argument
function.Modifier and Type | Method and Description |
---|---|
default Principal |
authenticate(Properties props)
Deprecated.
|
Principal |
authenticate(Properties props,
DistributedMember member)
Deprecated.
Verify the credentials provided in the properties for the client/peer as specified in member ID
and returns the principal associated with the client/peer.
|
default void |
init(Properties securityProps)
Deprecated.
Initializes a user-defined object using the given properties.
|
void |
init(Properties securityProps,
LogWriter systemLogger,
LogWriter securityLogger)
Deprecated.
Initialize the callback for a client/peer.
|
close
initialize
void init(Properties securityProps, LogWriter systemLogger, LogWriter securityLogger) throws AuthenticationFailedException
securityProps
- the security properties obtained using a call to
DistributedSystem.getSecurityProperties()
systemLogger
- LogWriter
for system logssecurityLogger
- LogWriter
for security logsAuthenticationFailedException
- if some exception occurs during the initializationdefault void init(Properties securityProps) throws AuthenticationFailedException
Declarable
Cache
initialization to fail.init
in interface Declarable
securityProps
- Contains the parameters declared in the declarative xml file.AuthenticationFailedException
Principal authenticate(Properties props, DistributedMember member) throws AuthenticationFailedException
props
- the credentials of the client/peer as a set of property key/valuesmember
- the DistributedMember
object of the connecting client/peer member. NULL
when invoked locally on the member initiating the authentication request.AuthenticationFailedException
- If the authentication of the client/peer fails.default Principal authenticate(Properties props) throws AuthenticationFailedException
AuthenticationFailedException