|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eaglei.repository.auth.Authentication
public final class Authentication
Authentication services: answer the question, "who am I, really?" and "do I have the Superuser role?". Note that other roles are enforced by the Access module, but since Superuser is special and is enforced by the authentication DB for the purpose of secure bootstrap, it is manged here. Started April, 2010
| Field Summary | |
|---|---|
static java.lang.String |
SUPERUSER_ROLE_NAME
Superuser role name in Java servlet container, i.e. |
| Method Summary | |
|---|---|
static void |
decacheAuthentication(javax.servlet.http.HttpServletRequest request,
User u)
Invalidate the cached authenticated User if it matches the one that was modified by the User API. |
static java.lang.String |
getAuthenticatedUsername(javax.servlet.http.HttpServletRequest request)
Get the current authenticated username from container or other auth'n. |
static org.openrdf.model.URI |
getPrincipalURI(javax.servlet.http.HttpServletRequest request)
Find the URI of the :Person object for the current authenticated user, if there is any. |
static User |
getPrincipalUser(javax.servlet.http.HttpServletRequest request)
Find a User object for the current authenticated user, if one is available. |
static boolean |
isSuperuser(javax.servlet.http.HttpServletRequest request)
isSuperuser |
static void |
logout(javax.servlet.http.HttpServletRequest request)
Destroy current session and credentials (if possible) most web browsers cache the HTTP Basic creds so user needs to trash those explicitly right after running this. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SUPERUSER_ROLE_NAME
| Method Detail |
|---|
public static org.openrdf.model.URI getPrincipalURI(javax.servlet.http.HttpServletRequest request)
request - a HttpServletRequest object.
public static void decacheAuthentication(javax.servlet.http.HttpServletRequest request,
User u)
request - a HttpServletRequest object.u - user to decache, a org.eaglei.repository.User object.public static java.lang.String getAuthenticatedUsername(javax.servlet.http.HttpServletRequest request)
public static User getPrincipalUser(javax.servlet.http.HttpServletRequest request)
request - a HttpServletRequest object.
public static boolean isSuperuser(javax.servlet.http.HttpServletRequest request)
isSuperuser
Predicate, true if current auth'd user has superuser role either in RDF assertion or in the container's authz.
request - a HttpServletRequest object.
public static void logout(javax.servlet.http.HttpServletRequest request)
request - a HttpServletRequest object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||