org.jboss.seam.faces.test.security
Class IdentityMock
java.lang.Object
org.jboss.seam.faces.test.security.IdentityMock
- All Implemented Interfaces:
- org.jboss.seam.security.Identity
public class IdentityMock
- extends Object
- implements org.jboss.seam.security.Identity
- Author:
- bleathem
| Fields inherited from interface org.jboss.seam.security.Identity |
RESPONSE_LOGIN_EXCEPTION, RESPONSE_LOGIN_FAILED, RESPONSE_LOGIN_SUCCESS |
|
Method Summary |
boolean |
addGroup(String name,
String groupType)
|
boolean |
addRole(String role,
String group,
String groupType)
|
void |
checkGroup(String group,
String groupType)
|
void |
checkPermission(Object resource,
String permission)
|
void |
checkRestriction(String expr)
|
void |
checkRole(String role,
String group,
String groupType)
|
void |
filterByPermission(Collection<?> collection,
String permission)
|
Class<org.jboss.seam.security.Authenticator> |
getAuthenticatorClass()
|
String |
getAuthenticatorName()
|
Set<org.picketlink.idm.api.Group> |
getGroups()
|
Set<org.picketlink.idm.api.Role> |
getRoles()
|
org.picketlink.idm.api.User |
getUser()
|
boolean |
hasPermission(Object resource,
String permission)
|
boolean |
hasRole(String role,
String group,
String groupType)
|
boolean |
inGroup(String name,
String groupType)
|
boolean |
isLoggedIn()
|
boolean |
isVerified()
|
String |
login()
|
void |
logout()
|
void |
quietLogin()
|
void |
removeGroup(String name,
String groupType)
|
void |
removeRole(String role,
String group,
String groupType)
|
void |
setAuthenticatorClass(Class<? extends org.jboss.seam.security.Authenticator> authenticatorClass)
|
void |
setAuthenticatorName(String authenticatorName)
|
boolean |
tryLogin()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdentityMock
public IdentityMock()
addGroup
public boolean addGroup(String name,
String groupType)
- Specified by:
addGroup in interface org.jboss.seam.security.Identity
addRole
public boolean addRole(String role,
String group,
String groupType)
- Specified by:
addRole in interface org.jboss.seam.security.Identity
checkGroup
public void checkGroup(String group,
String groupType)
- Specified by:
checkGroup in interface org.jboss.seam.security.Identity
checkPermission
public void checkPermission(Object resource,
String permission)
- Specified by:
checkPermission in interface org.jboss.seam.security.Identity
checkRestriction
public void checkRestriction(String expr)
- Specified by:
checkRestriction in interface org.jboss.seam.security.Identity
checkRole
public void checkRole(String role,
String group,
String groupType)
- Specified by:
checkRole in interface org.jboss.seam.security.Identity
filterByPermission
public void filterByPermission(Collection<?> collection,
String permission)
- Specified by:
filterByPermission in interface org.jboss.seam.security.Identity
getAuthenticatorClass
public Class<org.jboss.seam.security.Authenticator> getAuthenticatorClass()
- Specified by:
getAuthenticatorClass in interface org.jboss.seam.security.Identity
getAuthenticatorName
public String getAuthenticatorName()
- Specified by:
getAuthenticatorName in interface org.jboss.seam.security.Identity
getGroups
public Set<org.picketlink.idm.api.Group> getGroups()
- Specified by:
getGroups in interface org.jboss.seam.security.Identity
getRoles
public Set<org.picketlink.idm.api.Role> getRoles()
- Specified by:
getRoles in interface org.jboss.seam.security.Identity
getUser
public org.picketlink.idm.api.User getUser()
- Specified by:
getUser in interface org.jboss.seam.security.Identity
hasPermission
public boolean hasPermission(Object resource,
String permission)
- Specified by:
hasPermission in interface org.jboss.seam.security.Identity
hasRole
public boolean hasRole(String role,
String group,
String groupType)
- Specified by:
hasRole in interface org.jboss.seam.security.Identity
inGroup
public boolean inGroup(String name,
String groupType)
- Specified by:
inGroup in interface org.jboss.seam.security.Identity
isLoggedIn
public boolean isLoggedIn()
- Specified by:
isLoggedIn in interface org.jboss.seam.security.Identity
isVerified
public boolean isVerified()
- Specified by:
isVerified in interface org.jboss.seam.security.Identity
login
public String login()
- Specified by:
login in interface org.jboss.seam.security.Identity
logout
public void logout()
- Specified by:
logout in interface org.jboss.seam.security.Identity
quietLogin
public void quietLogin()
- Specified by:
quietLogin in interface org.jboss.seam.security.Identity
removeGroup
public void removeGroup(String name,
String groupType)
- Specified by:
removeGroup in interface org.jboss.seam.security.Identity
removeRole
public void removeRole(String role,
String group,
String groupType)
- Specified by:
removeRole in interface org.jboss.seam.security.Identity
setAuthenticatorClass
public void setAuthenticatorClass(Class<? extends org.jboss.seam.security.Authenticator> authenticatorClass)
- Specified by:
setAuthenticatorClass in interface org.jboss.seam.security.Identity
setAuthenticatorName
public void setAuthenticatorName(String authenticatorName)
- Specified by:
setAuthenticatorName in interface org.jboss.seam.security.Identity
tryLogin
public boolean tryLogin()
- Specified by:
tryLogin in interface org.jboss.seam.security.Identity
Copyright © 2009-2011 Seam Framework. All Rights Reserved.