org.jboss.seam.security.extension
Class SecurityExtension

java.lang.Object
  extended by org.jboss.seam.security.extension.SecurityExtension
All Implemented Interfaces:
Extension

public class SecurityExtension
extends Object
implements Extension

Extension for typesafe security annotations

Author:
Shane Bryzak

Constructor Summary
SecurityExtension()
           
 
Method Summary
 Set<org.jboss.seam.security.extension.SecurityExtension.Authorizer> lookupAuthorizerStack(Method m)
          This method is invoked by the security interceptor to obtain the authorizer stack for a secured method
<X> void
processAnnotatedType(ProcessAnnotatedType<X> event, BeanManager beanManager)
           
protected  void registerAuthorizer(AnnotatedMethod<?> m)
          Registers the specified authorizer method (i.e.
protected  void registerSecuredMethod(Method method)
           
 void validateBindings(AfterBeanDiscovery event, BeanManager beanManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityExtension

public SecurityExtension()
Method Detail

processAnnotatedType

public <X> void processAnnotatedType(@Observes
                                     ProcessAnnotatedType<X> event,
                                     BeanManager beanManager)
Type Parameters:
X -
Parameters:
event -
beanManager -

validateBindings

public void validateBindings(@Observes
                             AfterBeanDiscovery event,
                             BeanManager beanManager)

lookupAuthorizerStack

public Set<org.jboss.seam.security.extension.SecurityExtension.Authorizer> lookupAuthorizerStack(Method m)
This method is invoked by the security interceptor to obtain the authorizer stack for a secured method

Parameters:
m -
Returns:

registerSecuredMethod

protected void registerSecuredMethod(Method method)

registerAuthorizer

protected void registerAuthorizer(AnnotatedMethod<?> m)
Registers the specified authorizer method (i.e. a method annotated with the @Secures annotation)

Parameters:
m -
Throws:
IllegalAccessException
InvocationTargetException


Copyright © 2011 Seam Framework. All Rights Reserved.