extensions.gem
Class AuthenticateBean

java.lang.Object
  |
  +--extensions.gem.AuthenticateBean

public class AuthenticateBean
extends java.lang.Object

Program: AuthenticateBean.java Comments: Gets form data from the Login.jsp page, runs the kinit-batch program to generate the ticket on the server.


Constructor Summary
AuthenticateBean()
           
 
Method Summary
 java.lang.String getBatchPath()
           
 java.lang.String getKrb5ccname()
          Get the location of the credentials file, needed by KRB5CCNAME.
 java.lang.String getParam(extensions.gem.HttpServletRequest request, java.lang.String paramName)
          Returns the parameter value from the HTTP request.
 java.lang.String getUserName()
          Get the user name (minus the realm info).
 void requestTest(extensions.gem.HttpServletRequest request)
          Test stuff out.
 boolean runCommand(java.lang.String[] command)
           
 void runLogin(extensions.gem.HttpServletRequest request)
          Runs the kinit-batch program to generate a kerberos ticket on the host.
 void setBatchPath(java.lang.String batchPath)
          Accessor methods for the batchPath property
 extensions.gem.HttpServletResponse setUpLogin(extensions.gem.HttpServletRequest request, extensions.gem.HttpServletResponse response)
          Run the kinit script and assign the member data.
 void test()
           
 boolean validateRequest(extensions.gem.HttpServletRequest request)
          Check for the cookie's existence, compare its value to the stored session value, and also check the remote client's IP address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticateBean

public AuthenticateBean()
Method Detail

getParam

public java.lang.String getParam(extensions.gem.HttpServletRequest request,
                                 java.lang.String paramName)
Returns the parameter value from the HTTP request.

getUserName

public java.lang.String getUserName()
Get the user name (minus the realm info).

getKrb5ccname

public java.lang.String getKrb5ccname()
Get the location of the credentials file, needed by KRB5CCNAME.

requestTest

public void requestTest(extensions.gem.HttpServletRequest request)
Test stuff out.

setUpLogin

public extensions.gem.HttpServletResponse setUpLogin(extensions.gem.HttpServletRequest request,
                                                     extensions.gem.HttpServletResponse response)
Run the kinit script and assign the member data. The cookie should only be sent to the original domain (i.e. claw.arl.hpc.mil) and everything under the /GOW/CSM directory will see the cookie. These settings can be overridden with setDomain() and setPath(). Security should be set to true.

runLogin

public void runLogin(extensions.gem.HttpServletRequest request)
Runs the kinit-batch program to generate a kerberos ticket on the host. Assigns the value to the credentials file.

runCommand

public boolean runCommand(java.lang.String[] command)

setBatchPath

public void setBatchPath(java.lang.String batchPath)
Accessor methods for the batchPath property

getBatchPath

public java.lang.String getBatchPath()

validateRequest

public boolean validateRequest(extensions.gem.HttpServletRequest request)
Check for the cookie's existence, compare its value to the stored session value, and also check the remote client's IP address.

test

public void test()