Class 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
    • Constructor Detail

      • SimpleAuthorizingCallbackHandler

        public SimpleAuthorizingCallbackHandler()
      • SimpleAuthorizingCallbackHandler

        public SimpleAuthorizingCallbackHandler​(java.util.Properties properties)
    • 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 interface javax.security.auth.callback.CallbackHandler
        Throws:
        java.io.IOException
        javax.security.auth.callback.UnsupportedCallbackException