com.sap.security.api.logon
Class WebCallback

java.lang.Object
  |
  +--com.sap.security.api.logon.WebCallback
All Implemented Interfaces:
javax.security.auth.callback.Callback

public class WebCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback

JAAS Callback for Weblications. Use this one when a HTTPServletRequest or HTTPServletResponse is needed in the login module.

Version:
1.0

Constructor Summary
WebCallback()
          Creates a new WebCallback.
 
Method Summary
 char[] getPassword()
          Get the password of the user.
 javax.servlet.http.HttpServletRequest getRequest()
          Gets the request.
 javax.servlet.http.HttpServletResponse getResponse()
          Returns the response of the current callback.
 java.lang.String getUser()
          Gets the user to logon.
 void setPassword(char[] password)
          Sets the password for logon.
 void setPassword(java.lang.String password)
          Sets the password for logon.
 void setRequest(javax.servlet.http.HttpServletRequest request)
          Sets the request.
 void setResponse(javax.servlet.http.HttpServletResponse response)
          Sets the response for this callback.
 void setUser(java.lang.String user)
          Sets the user for this callback.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebCallback

public WebCallback()
Creates a new WebCallback.
Method Detail

getUser

public java.lang.String getUser()
Gets the user to logon.
Returns:
User or null if not available

setRequest

public void setRequest(javax.servlet.http.HttpServletRequest request)
Sets the request.
Parameters:
request - the request

getRequest

public javax.servlet.http.HttpServletRequest getRequest()
Gets the request.
Returns:
request or null if not available

setPassword

public void setPassword(java.lang.String password)
Sets the password for logon.
Parameters:
password - the password of the user

setPassword

public void setPassword(char[] password)
Sets the password for logon.
Parameters:
password - the password of the user

getPassword

public char[] getPassword()
Get the password of the user.
Returns:
password or null if not available

getResponse

public javax.servlet.http.HttpServletResponse getResponse()
Returns the response of the current callback.
Returns:
response or null if not available

setResponse

public void setResponse(javax.servlet.http.HttpServletResponse response)
Sets the response for this callback.
Parameters:
response - the response

setUser

public void setUser(java.lang.String user)
Sets the user for this callback.
Parameters:
user - the user


Copyright © 2002 SAP AG All Rights Reserved.