Class JaccInterceptor

  • All Implemented Interfaces:
    org.jboss.invocation.Interceptor

    public class JaccInterceptor
    extends Object
    implements org.jboss.invocation.Interceptor
    Author:
    Pedro Igor
    • Constructor Detail

      • JaccInterceptor

        public JaccInterceptor​(String viewClassName,
                               Method viewMethod)
    • Method Detail

      • processInvocation

        public Object processInvocation​(org.jboss.invocation.InterceptorContext context)
                                 throws Exception
        Specified by:
        processInvocation in interface org.jboss.invocation.Interceptor
        Throws:
        Exception
      • getGrantedRoles

        public static Principal[] getGrantedRoles​(org.wildfly.security.auth.server.SecurityIdentity securityIdentity)
        Returns an array of Principal representing the roles associated with the identity invoking the Jakarta Enterprise Beans. This method will check performs checks against run as identities in order to resolve the correct set of roles to be granted.
        Parameters:
        securityIdentity - the identity invoking the Jakarta Enterprise Beans
        Returns:
        an array of Principal representing the roles associated with the identity