Package org.apache.geode.security
Interface Authenticator
- All Superinterfaces:
CacheCallback,Declarable
Deprecated.
Specifies the mechanism to verify credentials for a client or peer. Implementations should
register name of the static creation function as the
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.- Since:
- GemFire 5.5
-
Method Summary
Modifier and TypeMethodDescriptiondefault Principalauthenticate(Properties props) Deprecated.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 voidinit(Properties securityProps) Deprecated.Initializes a user-defined object using the given properties.voidinit(Properties securityProps, LogWriter systemLogger, LogWriter securityLogger) Deprecated.Initialize the callback for a client/peer.Methods inherited from interface org.apache.geode.cache.CacheCallback
closeMethods inherited from interface org.apache.geode.cache.Declarable
initialize
-
Method Details
-
init
void init(Properties securityProps, LogWriter systemLogger, LogWriter securityLogger) throws AuthenticationFailedException Deprecated.Initialize the callback for a client/peer. This is invoked when a new connection from a client/peer is created with the host.- Parameters:
securityProps- the security properties obtained using a call toDistributedSystem.getSecurityProperties()systemLogger-LogWriterfor system logssecurityLogger-LogWriterfor security logs- Throws:
AuthenticationFailedException- if some exception occurs during the initialization
-
init
Deprecated.Description copied from interface:DeclarableInitializes a user-defined object using the given properties. Note that any uncaught exception thrown by this method will cause theCacheinitialization to fail.- Specified by:
initin interfaceDeclarable- Parameters:
securityProps- Contains the parameters declared in the declarative xml file.- Throws:
AuthenticationFailedException
-
authenticate
Principal authenticate(Properties props, DistributedMember member) throws AuthenticationFailedException 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.- Parameters:
props- the credentials of the client/peer as a set of property key/valuesmember- theDistributedMemberobject of the connecting client/peer member. NULL when invoked locally on the member initiating the authentication request.- Returns:
- the principal for the client/peer when authentication succeeded
- Throws:
AuthenticationFailedException- If the authentication of the client/peer fails.
-
authenticate
Deprecated.- Throws:
AuthenticationFailedException
-
SecurityManagerinstead