Package org.jgroups.auth.sasl
Class SimpleAuthorizingCallbackHandler
- java.lang.Object
-
- org.jgroups.auth.sasl.SimpleAuthorizingCallbackHandler
-
- All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler
public class SimpleAuthorizingCallbackHandler extends java.lang.Object implements javax.security.auth.callback.CallbackHandler
SimpleAuthorizingCallbackHandler. This class implements a simple callback handler which can be used to configure cluster authentication for the JGroups transport. It is configured via system properties. The following properties are available:- sasl.credentials.properties - the path to a property file which contains principal/credential mappings represented as principal=password
- sasl.local.principal - the name of the principal that is used to identify the local node. It must exist in the sasl.credentials.properties file
- sasl.roles.properties - (optional) the path to a property file which contains principal/roles mappings represented as principal=role1,role2,role3
- sasl.role - (optional) if present, authorizes joining nodes only if their principal is
- sasl.realm - (optional) the name of the realm to use for the SASL mechanisms that require it
- Since:
- 3.6
- Author:
- Tristan Tarrant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleAuthorizingCallbackHandler.PropertiesReloadFileObserver
-
Constructor Summary
Constructors Constructor Description SimpleAuthorizingCallbackHandler()
SimpleAuthorizingCallbackHandler(java.util.Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(javax.security.auth.callback.Callback[] callbacks)
-
-
-
Method Detail
-
handle
public void handle(javax.security.auth.callback.Callback[] callbacks) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException
- Specified by:
handle
in interfacejavax.security.auth.callback.CallbackHandler
- Throws:
java.io.IOException
javax.security.auth.callback.UnsupportedCallbackException
-
-