Class JaasHelper
java.lang.Object
org.apache.sling.auth.form.impl.jaas.JaasHelper
-
Constructor Summary
ConstructorsConstructorDescriptionJaasHelper
(org.apache.sling.auth.form.impl.FormAuthenticationHandler authHandler, org.osgi.framework.BundleContext ctx, org.apache.sling.auth.form.impl.FormAuthenticationHandlerConfig config) Opens/Initializes the helper and registers the login module factory (LMF) service if possible. -
Method Summary
-
Constructor Details
-
JaasHelper
public JaasHelper(org.apache.sling.auth.form.impl.FormAuthenticationHandler authHandler, org.osgi.framework.BundleContext ctx, org.apache.sling.auth.form.impl.FormAuthenticationHandlerConfig config) Opens/Initializes the helper and registers the login module factory (LMF) service if possible.- Parameters:
ctx
- the bundle contextconfig
- properties that contain the jaas related LMF service properties.
-
-
Method Details
-
enabled
public boolean enabled()Checks if JAAS support is enabled and the SSO login module is present.- Returns:
true
if JAAS support is enabled.
-
close
public void close()Closes this helper and unregisters the login module factory if needed.
-