Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » security » plugins » [javadoc | source]
org.jboss.security.plugins
public interface: SecurityManagerMBean [javadoc | source]

All Known Implementing Classes:
    JaasSecurityManagerService, JaasSecurityManagerServiceMBean

An MBean interface that unifies the AuthenticationManager and RealmMapping security interfaces implemented by a security manager for a given domain and provides access to this functionality across all domains by including the security domain name as a method argument.
Method from org.jboss.security.plugins.SecurityManagerMBean Summary:
doesUserHaveRole,   getPrincipal,   getUserRoles,   isValid
Method from org.jboss.security.plugins.SecurityManagerMBean Detail:
 public boolean doesUserHaveRole(String securityDomain,
    Principal principal,
    Object credential,
    Set roles)
    Validates the application domain roles to which the operational environment Principal belongs. This may first authenticate the principal as some security manager impls require a preceeding isValid call.
 public Principal getPrincipal(String securityDomain,
    Principal principal)
    Map from the operational environment Principal to the application domain principal. This is used by the EJBContext.getCallerPrincipal implentation to map from the authenticated principal to a principal in the application domain.
 public Set getUserRoles(String securityDomain,
    Principal principal,
    Object credential)
    Return the set of domain roles the principal has been assigned. This may first authenticate the principal as some security manager impls require a preceeding isValid call.
 public boolean isValid(String securityDomain,
    Principal principal,
    Object credential)
    The isValid method is invoked to see if a user identity and associated credentials as known in the operational environment are valid proof of the user identity.