|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.aspects.security.RunAsSecurityInterceptor
public class RunAsSecurityInterceptor
An interceptor that enforces the run-as identity declared by a bean.
| Field Summary | |
|---|---|
protected org.jboss.security.RealmMapping |
realmMapping
|
protected org.jboss.security.AuthenticationManager |
securityManager
|
| Constructor Summary | |
|---|---|
RunAsSecurityInterceptor()
Creates an instance of RunAsSecurityInterceptor. |
|
RunAsSecurityInterceptor(org.jboss.security.AuthenticationManager manager,
org.jboss.security.RealmMapping realmMapping)
Deprecated. use #RunAsSecurityInterceptor() instead. |
|
| Method Summary | |
|---|---|
protected org.jboss.security.RunAsIdentity |
getAnnotationRunAsIdentity(org.jboss.aop.joinpoint.Invocation invocation)
Obtains the run-as identity that have been specified through annotations. |
String |
getName()
|
protected org.jboss.security.RunAsIdentity |
getRunAsIdentity(org.jboss.aop.joinpoint.Invocation invocation)
Obtains the run-as identity to be used when running the method represented by the Invocation. |
Object |
invoke(org.jboss.aop.joinpoint.Invocation invocation)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.jboss.security.AuthenticationManager securityManager
protected org.jboss.security.RealmMapping realmMapping
| Constructor Detail |
|---|
public RunAsSecurityInterceptor()
Creates an instance of RunAsSecurityInterceptor.
@Deprecated
public RunAsSecurityInterceptor(org.jboss.security.AuthenticationManager manager,
org.jboss.security.RealmMapping realmMapping)
#RunAsSecurityInterceptor() instead.
Creates an instance of RunAsSecurityInterceptor using the specified AuthenticationManager
and RealmMapping implementations.
manager - the AuthenticationManager instance to be used when the caller hasn't been previously
authenticated.realmMapping - the RealmMapping instance to be used to determine if the caller has or has not the
required roles.| Method Detail |
|---|
public String getName()
getName in interface org.jboss.aop.advice.Interceptorprotected org.jboss.security.RunAsIdentity getRunAsIdentity(org.jboss.aop.joinpoint.Invocation invocation)
Obtains the run-as identity to be used when running the method represented by the Invocation.
invocation - the object that contains the metadata of the method being called.
RunAsIdentity to be used, or null if no run-as identity can be found.protected org.jboss.security.RunAsIdentity getAnnotationRunAsIdentity(org.jboss.aop.joinpoint.Invocation invocation)
Obtains the run-as identity that have been specified through annotations.
invocation - the object that contains the metadata of the method being called.
RunAsIdentity to be used, or null if no run-as identity has been specified..
public Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
throws Throwable
invoke in interface org.jboss.aop.advice.InterceptorThrowable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||