org.silverpeas.authentication
Class AuthenticationNT
java.lang.Object
org.silverpeas.authentication.Authentication
org.silverpeas.authentication.AuthenticationNT
public class AuthenticationNT
- extends Authentication
This class performs the NT authentication by calling the NTRIS service
- Version:
- Author:
- tleroi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_Host
protected String m_Host
m_Port
protected int m_Port
m_Timeout
protected int m_Timeout
AuthenticationNT
public AuthenticationNT()
loadProperties
public void loadProperties(ResourceLocator settings)
- Description copied from class:
Authentication
- Loads the specified properties to set the communication information with the authentication
service.
- Specified by:
loadProperties
in class Authentication
- Parameters:
settings
- the communication settings.
openConnection
protected AuthenticationConnection<Socket> openConnection()
throws AuthenticationException
- Description copied from class:
Authentication
- Opens a connection with a server of the remote authentication service.
The policy of the connection management is left to the concrete Authentication implementation.
- Specified by:
openConnection
in class Authentication
- Returns:
- a connection with a remote authentication server.
- Throws:
AuthenticationException
- if no connection can be established with a server of the remote
authentication service.
closeConnection
protected void closeConnection(AuthenticationConnection connection)
throws AuthenticationException
- Description copied from class:
Authentication
- Closes the connection that was previously opened with the server of the remote authentication
service.
The policy of the connection management is left to the concrete Authentication implementation.
- Specified by:
closeConnection
in class Authentication
- Parameters:
connection
- the connection with a remote authentication server.
- Throws:
AuthenticationException
- if no connection was previously opened or if the connection
cannot be closed for any reason.
doAuthentication
protected void doAuthentication(AuthenticationConnection connection,
AuthenticationCredential credential)
throws AuthenticationException
- Description copied from class:
Authentication
- Does the authentication by using the specified connection with the remote server and with
with the specified user credential.
- Specified by:
doAuthentication
in class Authentication
- Parameters:
connection
- the connection with a remote authentication server.credential
- the credential to use to authenticate the user.
- Throws:
AuthenticationException
- if an error occurs while authenticating the user.
Copyright © 2016 Silverpeas. All Rights Reserved.