Package be.gaudry.model.security
Class KerberosLoginAuthenticator
java.lang.Object
be.gaudry.model.security.KerberosLoginAuthenticator
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(LoginBean loginBean)Authenticates into Kerberosstatic booleanisKerberosSupported(String server)Calls a server to know if a Kerberos service may be used.static voidPuts the JAAS and Kerberos configuration files to the system properties
-
Constructor Details
-
KerberosLoginAuthenticator
public KerberosLoginAuthenticator()
-
-
Method Details
-
getSubject
- Returns:
- the Subject or null
-
authenticate
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
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
-