public class NullRunAsManager extends java.lang.Object implements RunAsManager
RunAsManager that does nothing.This class should be used if you do not require run-as authenticaiton replacement functionality.
| Constructor and Description |
|---|
NullRunAsManager() |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
buildRunAs(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(java.lang.Class clazz)
Indicates whether the
RunAsManager implementation is able to provide run-as replacement for
the indicated secure object type. |
boolean |
supports(ConfigAttribute attribute)
Indicates whether this
RunAsManager is able to process the passed
ConfigAttribute. |
public Authentication buildRunAs(Authentication authentication, java.lang.Object object, ConfigAttributeDefinition config)
RunAsManagerAuthentication object for the current secure object invocation, or
null if replacement not required.buildRunAs in interface RunAsManagerauthentication - the caller invoking the secure objectobject - the secured object being calledconfig - the configuration attributes associated with the secure object being invokednull if
the Authentication should be left as ispublic boolean supports(ConfigAttribute attribute)
RunAsManagerRunAsManager 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.
supports in interface RunAsManagerattribute - a configuration attribute that has been configured against the
AbstractSecurityInterceptortrue if this RunAsManager can support the passed configuration attributepublic boolean supports(java.lang.Class clazz)
RunAsManagerRunAsManager implementation is able to provide run-as replacement for
the indicated secure object type.supports in interface RunAsManagerclazz - the class that is being queried