|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SecurityDomainContext
A container independent security domain related facility
| Method Summary | |
|---|---|
boolean |
doesUserHaveRole(Principal principal,
Set<Principal> roles)
Validates the application domain roles to which the operational environment Principal belongs. |
String |
getSecurityDomain()
|
Set<Principal> |
getUserRoles(Principal principal)
Return the set of domain roles the principal has been assigned. |
boolean |
isValid(Principal principal,
Object credential,
Subject activeSubject)
The isValid method is invoked to see if a user identity and associated credentials as known in the operational environment are valid proof of the user identity. |
void |
pushSubjectContext(Subject subject,
Principal principal,
Object credential)
Push the provided subject into the current security context; if that's not set yet, also creates a new security context and associates it with the current thread. |
| Method Detail |
|---|
String getSecurityDomain()
boolean isValid(Principal principal,
Object credential,
Subject activeSubject)
principal - - the user identity in the operation environmentcredential - - the proof of user identity as known in the
operation environmentactiveSubject - - the Subject which should be populated with the
validated Subject contents. A JAAS based implementation would typically
populate the activeSubject with the LoginContext.login result.
boolean doesUserHaveRole(Principal principal,
Set<Principal> roles)
principal - the caller principal as known in the operation environment.roles - The SetSet<Principal> getUserRoles(Principal principal)
void pushSubjectContext(Subject subject,
Principal principal,
Object credential)
subject - principal - credential -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||