@Override public Object processInvocation(final InterceptorContext context) throws Exception { // TODO - special cases need to be handled where SecurityContext not established or minimal unauthenticated principal context instead. String previousContextID = this.setContextID(this.policyContextID); if (WildFlySecurityManager.isChecking()) { doPrivileged(pushAction); } else { pushAction.run(); } try { return context.proceed(); } finally { this.setContextID(previousContextID); if (WildFlySecurityManager.isChecking()) { doPrivileged(popAction); } else { popAction.run(); } } }
.setSkipAuthentication(securityRequired == false); return new SecurityContextInterceptor(holder);
.setExtraRoles(extraRoles).setPrincipalVsRolesMap(principalVsRolesMap); return new SecurityContextInterceptor(holder);