|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.security.plugins.NullSecurityManager
public class 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, Subject)
,
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 AuthenticationManager
public Subject getActiveSubject()
getActiveSubject
in interface AuthenticationManager
PolicyContextHandler.getContext(String, Object)
public boolean isValid(Principal principal, Object credential)
isValid
in interface AuthenticationManager
principal
- - the user identity in the operation environmentcredential
- - the proof of user identity as known in the
operation environment
AuthenticationManager.isValid(Principal, Object, Subject)
public boolean isValid(Principal principal, Object credential, Subject activeSubject)
isValid
in interface AuthenticationManager
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.
public Principal getPrincipal(Principal principal)
getPrincipal
in interface RealmMapping
principal
- the caller principal as known in the operation environment.
public boolean doesUserHaveRole(Principal principal, Set roleNames)
doesUserHaveRole
in interface RealmMapping
principal
- - 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 |