com.sibvisions.rad.server.security
Class NtlmDBSecurityManager
java.lang.Object
com.sibvisions.rad.server.security.AbstractSecurityManager
com.sibvisions.rad.server.security.AbstractDBSecurityManager
com.sibvisions.rad.server.security.DBSecurityManager
com.sibvisions.rad.server.security.NtlmDBSecurityManager
- All Implemented Interfaces:
- ISecurityManager, IPasswordValidator
public class NtlmDBSecurityManager
- extends DBSecurityManager
The NtlmDBSecurityManager
extends the DBSecurityManager
and
allows a client to authenticate with its domain credentials. This can be done
automatically through the browser or manually through a user input. In both cases
the user has to exist in the database. Without a valid username in the database,
the user can't log on to the application.
Methods inherited from class com.sibvisions.rad.server.security.DBSecurityManager |
changePassword, closeStatements, getAccessController, getAliveQuery, getSimpleEnvironmentName, initStatements, isActive, isChangePassword, isValid, logout, postAuthentication, preAuthentication, updateConfiguration |
Methods inherited from class com.sibvisions.rad.server.security.AbstractDBSecurityManager |
close, closeConnection, createAccessController, finalize, getConnection, getConnection, getCredentials, getCredentials, isConnectionAlive, openConnection, prepareCall, prepareStatement, register, release, unregister |
Methods inherited from class com.sibvisions.rad.server.security.AbstractSecurityManager |
addHiddenPackage, checkPassword, comparePassword, createSecurityManager, createSecurityManager, createSecurityManager, debug, error, getEncryptedPassword, getPasswordValidator, info, isAllowEncryptedUserPassword, isHiddenPackage, isPasswordEncrypted, isPasswordEncryptionEnabled, prepareException, prepareException, removeHiddenPackage, setAllowEncryptedUserPassword, validatePassword |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NtlmDBSecurityManager
public NtlmDBSecurityManager()
validateAuthentication
public void validateAuthentication(ISession pSession)
throws java.lang.Exception
- Validates if a session has valid credentials to access an application.
- Specified by:
validateAuthentication
in interface ISecurityManager
- Overrides:
validateAuthentication
in class DBSecurityManager
- Parameters:
pSession
- the session which needs access
- Throws:
java.lang.Exception
- if the access is denied (invalid username or password, password needs to be changed, ...)
isPasswordValid
protected boolean isPasswordValid(ISession pSession,
java.lang.String pPassword)
throws java.lang.Exception
- Checks if the database password is valid or the user is authenticated
via ntlm.
- Overrides:
isPasswordValid
in class DBSecurityManager
- Parameters:
pSession
- the session which needs accesspPassword
- the confirmation password (encrypted or plain text)
- Returns:
true
if the user password is valid
- Throws:
java.lang.Exception
- if the password validation failed (e.g. encryption problems)
isNtlmAuthenticated
protected boolean isNtlmAuthenticated(ISession pSession)
- Checks if the user was authenticated via ntlm. In that case, the
connection can be established.
- Parameters:
pSession
- the session which needs access
- Returns:
true
if the user was authenticated via ntlm,
false
otherwise
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.