Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » security » plugins » [javadoc | source]
org.jboss.security.plugins
public class: NullSecurityManager [javadoc | source]
java.lang.Object
   org.jboss.security.plugins.NullSecurityManager

All Implemented Interfaces:
    RealmMapping, SubjectSecurityManager, Serializable

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.
Constructor:
 public NullSecurityManager(String securityDomain) 
    Creates a default JaasSecurityManager for with the given securityDomain name.
Method from org.jboss.security.plugins.NullSecurityManager Summary:
doesUserHaveRole,   getActiveSubject,   getPrincipal,   getSecurityDomain,   getUserRoles,   isValid,   isValid
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.security.plugins.NullSecurityManager Detail:
 public boolean doesUserHaveRole(Principal principal,
    Set roleNames) 
    Does the current Subject have a role(a Principal) that equates to one of the role names. This method always returns true.
 public Subject getActiveSubject() 
    Get the currently authenticated Subject.
 public Principal getPrincipal(Principal principal) 
    Always returns the argument principal.
 public String getSecurityDomain() 
    Get the name of the security domain associated with this security mgr.
 public Set getUserRoles(Principal principal) 
    Return the set of domain roles the principal has been assigned.
 public boolean isValid(Principal principal,
    Object credential) 
    Validate that the given credential is correct for principal.
 public boolean isValid(Principal principal,
    Object credential,
    Subject activeSubject) 
    Validate that the given credential is correct for principal. This does not populate the activeSubject with any state since no authentication is performed.