public class ServletSecurityUtils
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
| Constructor and Description | 
|---|
ServletSecurityUtils()  | 
| Modifier and Type | Method and Description | 
|---|---|
static User | 
currentUser(java.lang.String pPath,
           DynamoHttpServletRequest pRequest)
Given a path and the handle to the current request, this static call
 will resolve the User instance and return it 
 | 
static boolean | 
stringArrayToPersonaArray(java.lang.String[] pNames,
                         Persona[] pPersonae,
                         UserAuthority pUserAuthority)
Takes an array of Personae names which should be contained in a given
 UserAuthority, and converts them into an array of Personae instances
 returns true if convertions was successful. 
 | 
static boolean | 
userHasPersona(User pUser,
              UserAuthority pUserAuthority,
              Persona[] pGroups)
Checks to see if pUser has a Persona in the given array of Personae
 It is up to the caller to insure the integrity of the arguments provided to
 this function call. 
 | 
static boolean | 
userHasPersona(User pUser,
              UserAuthority pUserAuthority,
              java.lang.String[] pGroups)
Checks to see if pUser has a Persona in the given array of Personae
 It is up to the caller to insure the integrity of the arguments provided to
 this function call. 
 | 
public static User currentUser(java.lang.String pPath, DynamoHttpServletRequest pRequest)
pPath - the path to where the User definition liespRequest - the current HTTP request (what holds the state)public static boolean userHasPersona(User pUser, UserAuthority pUserAuthority, Persona[] pGroups)
pGroups - an array of Personae that represent different user groupspUser - is an instance of User class which could contain 0 or N PersonaepUserAuthority - UserAuthority instance with which pUser was authenticatedpublic static boolean userHasPersona(User pUser, UserAuthority pUserAuthority, java.lang.String[] pGroups)
pGroups - an array of names of groups that represent different user personaepUser - is an instance of User class which could contain 0 or N PersonaepUserAuthority - UserAuthority instance with which pUser was authenticatedpublic static boolean stringArrayToPersonaArray(java.lang.String[] pNames,
                                                Persona[] pPersonae,
                                                UserAuthority pUserAuthority)
pNames - an array of String that represent different user groupspPersonae - is initially empty array of the same size as pNames, which
 should be filled out by the end of the operation.pUserAuthority - UserAuthority instance which should contain approprite personae