|
|||||||||||
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 FormConstructor 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 SubjectSecurityManager
public Subject getActiveSubject()
getActiveSubject
in interface SubjectSecurityManager
AuthenticationManager.isValid(Principal, Object)
,
SubjectSecurityManager.isValid(Principal, Object, Subject)
public boolean isValid(Principal principal, Object credential)
isValid
in interface AuthenticationManager
public boolean isValid(Principal principal, Object credential, Subject activeSubject)
isValid
in interface SubjectSecurityManager
public Principal getPrincipal(Principal principal)
getPrincipal
in interface RealmMapping
public boolean doesUserHaveRole(Principal principal, Set roleNames)
doesUserHaveRole
in interface RealmMapping
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 |