Class JaasHelper

java.lang.Object
org.apache.sling.auth.form.impl.jaas.JaasHelper

public class JaasHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes this helper and unregisters the login module factory if needed.
    boolean
    Checks if JAAS support is enabled and the SSO login module is present.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 context
      config - 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.