|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.security.plugins.NoAccessSecurityManager
An implementation of SubjectSecurityManager, RealmMapping does not allow any authentication and every check for a role fails.
isValid(java.security.Principal, Object),
getPrincipal(java.security.Principal),
doesUserHaveRole(java.security.Principal, java.util.Set),
Serialized Form| Constructor Summary | |
NoAccessSecurityManager(String securityDomain)
Creates a default JaasSecurityManager for with the given securityDomain name. |
|
| Method Summary | |
boolean |
doesUserHaveRole(Principal principal,
Set roleNames)
Does the current Subject have a role(a Principal) that equates to one of the role names. |
Subject |
getActiveSubject()
Get the currently authenticated Subject. |
Principal |
getPrincipal(Principal principal)
Always returns the argument principal. |
String |
getSecurityDomain()
Get the name of the security domain associated with this security mgr. |
Set |
getUserRoles(Principal principal)
Return the set of domain roles the principal has been assigned. |
boolean |
isValid(Principal principal,
Object credential)
Validate that the given credential is correct for principal. |
boolean |
isValid(Principal principal,
Object credential,
Subject activeSubject)
Validate that the given credential is correct for principal. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NoAccessSecurityManager(String securityDomain)
| Method Detail |
public String getSecurityDomain()
getSecurityDomain in interface AuthenticationManagerpublic Subject getActiveSubject()
getActiveSubject in interface AuthenticationManagerAuthenticationManager.isValid(java.security.Principal, Object),
AuthenticationManager.isValid(java.security.Principal, Object, javax.security.auth.Subject)public boolean isValid(Principal principal, Object credential)
isValid in interface AuthenticationManagerprincipal - - the user identity in the operation environmentcredential - - the proof of user identity as known in the
operation environment
public boolean isValid(Principal principal, Object credential, Subject activeSubject)
isValid in interface AuthenticationManagerprincipal - - the user identity in the operation environmentcredential - - the proof of user identity as known in the
operation environment
public Principal getPrincipal(Principal principal)
getPrincipal in interface RealmMappingprincipal - the caller principal as known in the operation environment.
public boolean doesUserHaveRole(Principal principal, Set roleNames)
doesUserHaveRole in interface RealmMappingprincipal - - ignored.roleNames - - ignored.
public Set getUserRoles(Principal principal)
getUserRoles in interface RealmMapping
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||