public interface Authenticator extends CacheCallback
security-peer-authenticatorsystem property with all the locators in the distributed system for peer authentication, and as
security-client-authenticatorfor 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|
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.
Initialize the callback for a client/peer.
void init(Properties securityProps, LogWriter systemLogger, LogWriter securityLogger) throws AuthenticationFailedException
Principal authenticate(Properties props, DistributedMember member) throws AuthenticationFailedException
props- the credentials of the client/peer as a set of property key/values
DistributedMemberobject 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.
Copyright © 1997-2017 Pivotal Software, Inc. All rights reserved.