Package com.avanza.astrix.gs.security
Class DefaultGsSecurityProvider
- java.lang.Object
-
- com.avanza.astrix.gs.security.DefaultGsSecurityProvider
-
- All Implemented Interfaces:
GsSecurityProvider
public class DefaultGsSecurityProvider extends Object implements GsSecurityProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.avanza.astrix.gs.security.GsSecurityProvider
GsSecurityProvider.GsServerAuthenticator
-
-
Constructor Summary
Constructors Constructor Description DefaultGsSecurityProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.gigaspaces.security.directory.CredentialsProvidergetGsClientCredentialsProvider(String spaceName)Provides client credentials when making connections to a secured GigaSpaces space.GsSecurityProvider.GsServerAuthenticatorgetGsServerAuthenticator()Provides a server-side authentication validator for credentials that the server has received.
-
-
-
Method Detail
-
getGsClientCredentialsProvider
public com.gigaspaces.security.directory.CredentialsProvider getGsClientCredentialsProvider(String spaceName)
Description copied from interface:GsSecurityProviderProvides client credentials when making connections to a secured GigaSpaces space. This method will be invoked when a new connection is being established to a remote space. If the space does not require authentication, this method will not be called.- Specified by:
getGsClientCredentialsProviderin interfaceGsSecurityProvider- Parameters:
spaceName- the name of the space that a client intends to connect to- Returns:
CredentialsProvider
-
getGsServerAuthenticator
public GsSecurityProvider.GsServerAuthenticator getGsServerAuthenticator()
Description copied from interface:GsSecurityProviderProvides a server-side authentication validator for credentials that the server has received. This method will be invoked when the GigaSpaces component is starting up (when the service is starting), regardless of whether security is enabled or not. However, the methods onGsSecurityProvider.GsServerAuthenticatorwill only be invoked for secured spaces when the server has received client credentials.- Specified by:
getGsServerAuthenticatorin interfaceGsSecurityProvider- Returns:
GsSecurityProvider.GsServerAuthenticator
-
-