|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sigpath.util.Authenticate
public class Authenticate
Utility Class for Authenticating Users. In order to be authenticated, three requirements must be met:
| Constructor Summary | |
|---|---|
Authenticate(Cookie[] cookies,
XDebug xdebug)
Constructor. |
|
Authenticate(String username)
Used in JUnit tests. |
|
| Method Summary | |
|---|---|
Cookie |
createIDCookie(Login form)
Creates User Identification Cookie. |
Cookie |
createInvalidatedCookie()
Creates Invalidated User Identification Cookie. |
User |
getUser()
Gets User Object from Current Session. |
String |
getUserName()
Gets User Name from Current Session. |
boolean |
isAdmin()
Is the user an Admin? |
boolean |
isAuthenticated()
Is the user authenticated? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Authenticate(Cookie[] cookies,
XDebug xdebug)
throws SigPathDatabaseException,
UnsupportedEncodingException
cookies - Array of Cookie Object from HttpServletRequestxdebug - Live Debugger Object
SigPathDatabaseException - Indicates Database Error
UnsupportedEncodingExceptionpublic Authenticate(String username)
username - The name of the user that the test assumes has been
authenticated.| Method Detail |
|---|
public Cookie createIDCookie(Login form)
throws SigPathDatabaseException
form - Login Form
SigPathDatabaseException - Indicates Database Errorpublic Cookie createInvalidatedCookie()
public boolean isAuthenticated()
public boolean isAdmin()
public String getUserName()
public User getUser()
|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||