|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.security.plugins.NullSecurityManager
An implementation of SubjectSecurityManager, RealmMapping that authenticates everyone and for which Principals have any role requested. It can be used as a pass-through security manager when you want noop security.
isValid(Principal, Object),
getPrincipal(Principal),
doesUserHaveRole(Principal, Set),
Serialized Form| Constructor Summary | |
NullSecurityManager(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 NullSecurityManager(String securityDomain)
| Method Detail |
public String getSecurityDomain()
getSecurityDomain in interface SubjectSecurityManagerpublic Subject getActiveSubject()
getActiveSubject in interface SubjectSecurityManagerAuthenticationManager.isValid(Principal, Object),
SubjectSecurityManager.isValid(Principal, Object, Subject)public boolean isValid(Principal principal, Object credential)
isValid in interface AuthenticationManagerpublic boolean isValid(Principal principal, Object credential, Subject activeSubject)
isValid in interface SubjectSecurityManagerpublic Principal getPrincipal(Principal principal)
getPrincipal in interface RealmMappingpublic boolean doesUserHaveRole(Principal principal, Set roleNames)
doesUserHaveRole in interface RealmMappingpublic Set getUserRoles(Principal principal)
getUserRoles in interface RealmMapping
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||