public class JaccInterceptor extends Object implements org.jboss.invocation.Interceptor
| Constructor and Description |
|---|
JaccInterceptor(String viewClassName,
Method viewMethod) |
| Modifier and Type | Method and Description |
|---|---|
static Principal[] |
getGrantedRoles(org.wildfly.security.auth.server.SecurityIdentity securityIdentity)
Returns an array of
Principal representing the roles associated with the identity
invoking the EJB. |
protected org.jboss.metadata.ejb.spec.MethodInterfaceType |
getMethodInterfaceType(MethodIntf viewType)
Gets the
MethodInterfaceType that corresponds to the specified MethodIntf. |
Object |
processInvocation(org.jboss.invocation.InterceptorContext context) |
public Object processInvocation(org.jboss.invocation.InterceptorContext context) throws Exception
processInvocation in interface org.jboss.invocation.InterceptorExceptionprotected org.jboss.metadata.ejb.spec.MethodInterfaceType getMethodInterfaceType(MethodIntf viewType)
Gets the MethodInterfaceType that corresponds to the specified MethodIntf.
viewType - the MethodIntf type to be converted.null if the type cannot be converted.public static Principal[] getGrantedRoles(org.wildfly.security.auth.server.SecurityIdentity securityIdentity)
Principal representing the roles associated with the identity
invoking the EJB. This method will check performs checks against run as identities in order to
resolve the correct set of roles to be granted.securityIdentity - the identity invoking the EJBPrincipal representing the roles associated with the identityCopyright © 2020 JBoss by Red Hat. All rights reserved.