org.jboss.seam.security
Class SecurityExtension

java.lang.Object
  extended by org.jboss.seam.security.SecurityExtension
All Implemented Interfaces:
javax.enterprise.inject.spi.Extension
Direct Known Subclasses:
SecurityExtension

public class SecurityExtension
extends Object
implements javax.enterprise.inject.spi.Extension

Extension for typesafe security annotations

Author:
Shane Bryzak

Constructor Summary
SecurityExtension()
           
 
Method Summary
 Set<org.jboss.seam.security.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(javax.enterprise.inject.spi.ProcessAnnotatedType<X> event, javax.enterprise.inject.spi.BeanManager beanManager)
           
protected  void registerAuthorizer(javax.enterprise.inject.spi.AnnotatedMethod<?> m)
          Registers the specified authorizer method (i.e.
protected  void registerSecuredMethod(Method method)
           
 void validateAuthenticatorImplementation(javax.enterprise.inject.spi.ProcessSessionBean<org.jboss.seam.security.Authenticator> event)
          Ensures that any implementations of the Authenticator interface are not stateless session beans.
 void validateBindings(javax.enterprise.inject.spi.AfterBeanDiscovery event, javax.enterprise.inject.spi.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
                                     javax.enterprise.inject.spi.ProcessAnnotatedType<X> event,
                                     javax.enterprise.inject.spi.BeanManager beanManager)
Type Parameters:
X -
Parameters:
event -
beanManager -

validateBindings

public void validateBindings(@Observes
                             javax.enterprise.inject.spi.AfterBeanDiscovery event,
                             javax.enterprise.inject.spi.BeanManager beanManager)

lookupAuthorizerStack

public Set<org.jboss.seam.security.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(javax.enterprise.inject.spi.AnnotatedMethod<?> m)
Registers the specified authorizer method (i.e. a method annotated with the @Secures annotation)

Parameters:
m -
Throws:
IllegalAccessException
InvocationTargetException

validateAuthenticatorImplementation

public void validateAuthenticatorImplementation(@Observes
                                                javax.enterprise.inject.spi.ProcessSessionBean<org.jboss.seam.security.Authenticator> event)
Ensures that any implementations of the Authenticator interface are not stateless session beans.

Parameters:
event -


Copyright © 2011 Seam Framework. All Rights Reserved.