Class KerberosLoginAuthenticator

java.lang.Object
be.gaudry.model.security.KerberosLoginAuthenticator

public class KerberosLoginAuthenticator extends Object
Allows to authenticate from a Kerberos server. Provided by the broldev.core.model project.
Since:
1.0 Dec 20, 2008, broldev.core.model 0.0.1-SNAPSHOT dependency
Version:
1.0 Dec 20, 2008
Author:
Steph GAUDRY
  • Constructor Details

    • KerberosLoginAuthenticator

      public KerberosLoginAuthenticator()
  • Method Details

    • getSubject

      public Subject getSubject()
      Returns:
      the Subject or null
    • authenticate

      public boolean authenticate(LoginBean loginBean) throws LoginException
      Authenticates into Kerberos
      Parameters:
      loginBean - login informations
      Returns:
      true if authenticated
      Throws:
      LoginException
    • setSecurityConfigProperties

      public static void setSecurityConfigProperties()
      Puts the JAAS and Kerberos configuration files to the system properties
    • isKerberosSupported

      public static boolean isKerberosSupported(String server)
      Calls a server to know if a Kerberos service may be used.
      Parameters:
      server - IP address or domain name of the server
      Returns:
      true if a server's supported SASL mechanisms is found