Class JAASAuthentication

  • All Implemented Interfaces:
    AuthenticationInterface

    public class JAASAuthentication
    extends java.lang.Object
    implements AuthenticationInterface
    This class provides the capability of authentication against a JAAS module.
    Since:
    7.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String JAAS_APPLICATION
      Constant used when creating the LoginContext object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void authenticate​(java.lang.String aUserName, java.lang.String aPassword)
      This method creates a login context using the JAAS_APPLICATION as the key name of the configuration.
      void authenticate​(java.util.Map<java.lang.String,​java.lang.String> aMap)
      This method does not actually authenticate the provided user.
      void close()
      There is nothing to close.
      void initialize​(java.util.Map<java.lang.String,​java.lang.String> aConfigMap)
      No initialization required.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • JAAS_APPLICATION

        public static final java.lang.String JAAS_APPLICATION
        Constant used when creating the LoginContext object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JAASAuthentication

        public JAASAuthentication()
    • Method Detail

      • initialize

        public void initialize​(java.util.Map<java.lang.String,​java.lang.String> aConfigMap)
                        throws java.lang.Exception
        No initialization required. The call to this method is ignored.
        Specified by:
        initialize in interface AuthenticationInterface
        Parameters:
        aConfigMap - this parameter is ignored.
        Throws:
        java.lang.Exception - - never.
      • authenticate

        public void authenticate​(java.util.Map<java.lang.String,​java.lang.String> aMap)
                          throws java.lang.Exception
        This method does not actually authenticate the provided user.
        Specified by:
        authenticate in interface AuthenticationInterface
        Parameters:
        aMap - this parameter is ignored.
        Throws:
        java.lang.Exception - - never.
      • authenticate

        public void authenticate​(java.lang.String aUserName,
                                 java.lang.String aPassword)
                          throws java.lang.Exception
        This method creates a login context using the JAAS_APPLICATION as the key name of the configuration.
        Specified by:
        authenticate in interface AuthenticationInterface
        Parameters:
        aUserName - the user name to authenticate.
        aPassword - the password used for the authentication.
        Throws:
        java.lang.Exception - if the authentication fails.
      • close

        public void close()
                   throws java.lang.Exception
        There is nothing to close. The call to this method is ignored.
        Specified by:
        close in interface AuthenticationInterface
        Throws:
        java.lang.Exception - - never.