de.uplanet.lucy.server.auxiliaries
Class AuthProxy

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.AuthProxy

public final class AuthProxy
extends java.lang.Object

Version:
$Revision: 65792 $

Method Summary
 boolean changePassword(java.lang.String p_strSessionId, java.lang.String p_strLoginName, java.lang.String p_strLoginDomain, java.lang.String p_strPayloadC, java.lang.String p_strResponse)
          Change a user's password.
 java.util.List<java.util.List<java.lang.String>> getAuthenticationTokenTypes(java.lang.String p_strAuthConfigName)
           
 java.util.Set<java.lang.String> getAuthenticationTokenTypesUnion(java.lang.String p_strAuthConfigName)
           
 java.lang.String getAuthType()
          Get the authentication type.
 de.uplanet.lucy.server.login.Challenge getChallenge(IServerBridgeRequest p_request, java.lang.String p_strLoginName, java.lang.String p_strLoginDomain, boolean p_bFailIfUserNotFound)
          Get a new challenge for the given user.
 int getPasswordMinLength()
          Get the minimum length of the user-password.
 java.lang.String login(Session p_session, java.lang.String p_strAuthConfigName, java.util.Map<java.lang.String,java.lang.String> p_credentials)
           
 int logout(IServerBridgeRequest p_request)
          Logout the current session.
 int revertToAnonymous(IServerBridgeRequest p_request)
          Revert the session back to anonymous.
 boolean showLoginUI()
          Is the user able to login via the browser-interface?
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAuthType

public java.lang.String getAuthType()
Get the authentication type.

Returns:
The authentication type.
Since:
Version 2.01.

showLoginUI

public boolean showLoginUI()
Is the user able to login via the browser-interface?

Returns:
true if a login-ui could be provided.
Since:
Version 4.50.

getAuthenticationTokenTypes

public java.util.List<java.util.List<java.lang.String>> getAuthenticationTokenTypes(java.lang.String p_strAuthConfigName)

getAuthenticationTokenTypesUnion

public java.util.Set<java.lang.String> getAuthenticationTokenTypesUnion(java.lang.String p_strAuthConfigName)

login

public java.lang.String login(Session p_session,
                              java.lang.String p_strAuthConfigName,
                              java.util.Map<java.lang.String,java.lang.String> p_credentials)

getChallenge

public de.uplanet.lucy.server.login.Challenge getChallenge(IServerBridgeRequest p_request,
                                                           java.lang.String p_strLoginName,
                                                           java.lang.String p_strLoginDomain,
                                                           boolean p_bFailIfUserNotFound)
Get a new challenge for the given user.

Parameters:
p_request - The request to pe processed.
p_strLoginName - The user's login name.
p_strLoginDomain - The user's login domain.
p_bFailIfUserNotFound - If set to true the method will return null if no matching user is found in the database.
Returns:
A challenge object.

logout

public int logout(IServerBridgeRequest p_request)
Logout the current session.

Parameters:
p_request - The request to pe processed.
Returns:
An error code defined in WebSessionBroker.

revertToAnonymous

public int revertToAnonymous(IServerBridgeRequest p_request)
Revert the session back to anonymous.

Parameters:
p_request - The request to pe processed.
Returns:
An error code defined in WebSessionBroker.

getPasswordMinLength

public int getPasswordMinLength()
Get the minimum length of the user-password.

Returns:
The minimum length of the user-password.

changePassword

public boolean changePassword(java.lang.String p_strSessionId,
                              java.lang.String p_strLoginName,
                              java.lang.String p_strLoginDomain,
                              java.lang.String p_strPayloadC,
                              java.lang.String p_strResponse)
Change a user's password.

Parameters:
p_strSessionId - The unique session identifier.
p_strLoginName - The user's login name.
p_strLoginDomain - The user's login domain.
p_strPayloadC - The encrypted new password.
p_strResponse - The client's response to the authentication challenge.


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.