|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SecurityService
This interface represents a Security service.
| Field Summary | |
|---|---|
static java.lang.String |
AUTH_REQUEST
|
static java.lang.String |
CONTEXT
Constant intended for usage as a key in different types of maps. |
| Method Summary | |
|---|---|
void |
authenticate(SecurityConfig securityConfig,
SecurityContext securityContext,
AuthenticationRequest authRequest)
Authenticates a subject. |
boolean |
checkRolesAllowed(java.util.List<java.lang.String> rolesAllowed,
SecurityContext securityContext)
Check if the the SecurityContext has a principal that is a member of one of the passed in rolesAllowed list. |
void |
configure()
Configure the security serivce for usage. |
boolean |
isCallerInRole(javax.security.auth.Subject subject,
java.security.Principal role)
Determines if the subject contains the passed in role in it's set of Principals. |
void |
logout(SecurityConfig securityConfig)
Logout and clean up of any security state. |
void |
refreshSecurityConfig()
Refresh the security configuration |
| Field Detail |
|---|
static final java.lang.String CONTEXT
static final java.lang.String AUTH_REQUEST
| Method Detail |
|---|
void configure()
throws ConfigurationException
ConfigurationException
void authenticate(SecurityConfig securityConfig,
SecurityContext securityContext,
AuthenticationRequest authRequest)
throws SecurityServiceException
securityContext - - the security context to authenticate
javax.security.auth.login.LoginException - - if the authentication was not sucessful
SecurityServiceException
boolean checkRolesAllowed(java.util.List<java.lang.String> rolesAllowed,
SecurityContext securityContext)
rolesAllowed - - list or allowed rolessecurityContext - - the security context
boolean isCallerInRole(javax.security.auth.Subject subject,
java.security.Principal role)
subject - - the Subject instance belonging to the caller.context - - the principal instance representing the role to check for.
void logout(SecurityConfig securityConfig)
securityContext -
javax.security.auth.login.LoginExceptionvoid refreshSecurityConfig()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||