org.jboss.aspects.security
Class AuthenticationInterceptor
java.lang.Object
org.jboss.aspects.security.AuthenticationInterceptor
- All Implemented Interfaces:
- org.jboss.aop.advice.Interceptor
public class AuthenticationInterceptor
- extends Object
- implements org.jboss.aop.advice.Interceptor
The AuthenticationInterceptor authenticates the caller.
- Version:
- $Revision: 1.4.2.6 $
- Author:
- Scott Stark., Bill Burke
Field Summary |
protected org.jboss.security.AuthenticationManager |
authenticationManager
|
protected org.jboss.logging.Logger |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected org.jboss.logging.Logger log
authenticationManager
protected org.jboss.security.AuthenticationManager authenticationManager
AuthenticationInterceptor
public AuthenticationInterceptor(org.jboss.security.AuthenticationManager manager)
getName
public String getName()
- Specified by:
getName
in interface org.jboss.aop.advice.Interceptor
handleGeneralSecurityException
protected void handleGeneralSecurityException(GeneralSecurityException gse)
invoke
public Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
throws Throwable
- Authenticates the caller using the principal and credentials in the
Infocation if thre is a security manager and an invcocation method.
- Specified by:
invoke
in interface org.jboss.aop.advice.Interceptor
- Throws:
Throwable
authenticate
protected void authenticate(org.jboss.aop.joinpoint.Invocation invocation)
throws Exception
- Throws:
Exception
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.