Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.runas
Class NullRunAsManager  view NullRunAsManager download NullRunAsManager.java

java.lang.Object
  extended byorg.acegisecurity.runas.NullRunAsManager
All Implemented Interfaces:
org.acegisecurity.RunAsManager

public class NullRunAsManager
extends java.lang.Object
implements org.acegisecurity.RunAsManager

Implementation of a org.acegisecurity.RunAsManager that does nothing.

This class should be used if you do not require run-as authenticaiton replacement functionality.

Version:
$Id: NullRunAsManager.java,v 1.2 2005/11/17 00:55:51 benalex Exp $

Constructor Summary
NullRunAsManager()
           
 
Method Summary
 org.acegisecurity.Authentication buildRunAs(org.acegisecurity.Authentication authentication, java.lang.Object object, ConfigAttributeDefinition config)
          Returns a replacement Authentication object for the current secure object invocation, or null if replacement not required.
 boolean supports(ConfigAttribute attribute)
          Indicates whether this RunAsManager is able to process the passed ConfigAttribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullRunAsManager

public NullRunAsManager()
Method Detail

buildRunAs

public org.acegisecurity.Authentication buildRunAs(org.acegisecurity.Authentication authentication,
                                                   java.lang.Object object,
                                                   ConfigAttributeDefinition config)
Description copied from interface: org.acegisecurity.RunAsManager
Returns a replacement Authentication object for the current secure object invocation, or null if replacement not required.

Specified by:
buildRunAs in interface org.acegisecurity.RunAsManager

supports

public boolean supports(ConfigAttribute attribute)
Description copied from interface: org.acegisecurity.RunAsManager
Indicates whether this RunAsManager is able to process the passed ConfigAttribute.

This allows the AbstractSecurityInterceptor to check every configuration attribute can be consumed by the configured AccessDecisionManager and/or RunAsManager and/or AfterInvocationManager.

Specified by:
supports in interface org.acegisecurity.RunAsManager