public class EJBAuthenticationHelper extends AbstractJavaEEHelper
policyRegistration, securityContext
Constructor and Description |
---|
EJBAuthenticationHelper(SecurityContext sc) |
Modifier and Type | Method and Description |
---|---|
boolean |
isTrusted()
Whether the current caller can be trusted?
|
boolean |
isValid(Subject subject,
String methodName)
Authenticate the caller
|
void |
pushSubjectContext(Subject subject)
Push the authenticated subject onto the security context
IMPORTANT - this needs to be done after the isValid call
|
audit, authenticationAudit, authorizationAudit, getCallerPrincipal, getContextMap, getPolicyRegistration, getSecurityContext, setPolicyRegistration, setSecurityContext
public EJBAuthenticationHelper(SecurityContext sc)
public boolean isTrusted() throws IdentityTrustException
IdentityTrustException
public boolean isValid(Subject subject, String methodName)
subject
- methodName
- IllegalArgumentException
- subject or methodName is nullpublic void pushSubjectContext(Subject subject)
Copyright © 2018 JBoss by Red Hat. All rights reserved.