public abstract class AbstractSAML2Handler extends AbstractPicketLinkTrustHandler
Base class for SAML handlers implementations. A default implementation is provided by the SAML2Handler
class.
Modifier and Type | Field and Description |
---|---|
static String |
ROLE_KEY_SYS_PROP |
AUTHZ_MGR_LOOKUP, headers, logger, SEC_MGR_LOOKUP
Constructor and Description |
---|
AbstractSAML2Handler() |
Modifier and Type | Method and Description |
---|---|
protected void |
createSecurityContext(SamlCredential credential,
Subject theSubject,
Principal principal,
MessageContext msgContext)
Subclasses can override this method to customize how the security context is created.
|
protected boolean |
handleInbound(MessageContext msgContext)
Retrieves the SAML assertion from the SOAP payload and lets invocation go to JAAS for validation.
|
protected boolean |
handleOutbound(MessageContext msgContext)
It expects a
Element assertion as the value of the SAML2Constants.SAML2_ASSERTION_PROPERTY property. |
close, getAssertionFromSubject, getHeaders, getSecurityDomainName, getSecurityHeaderElement, getServletContext, getUsername, handleFault, handleMessage, lookupJNDI, trace
public static final String ROLE_KEY_SYS_PROP
protected boolean handleInbound(MessageContext msgContext)
handleInbound
in class AbstractPicketLinkTrustHandler
protected void createSecurityContext(SamlCredential credential, Subject theSubject, Principal principal, MessageContext msgContext)
Subclasses can override this method to customize how the security context is created.
credential
- theSubject
- principal
- msgContext
- protected boolean handleOutbound(MessageContext msgContext)
Element
assertion as the value of the SAML2Constants.SAML2_ASSERTION_PROPERTY
property. This
assertion is then included in the SOAP payload.handleOutbound
in class AbstractPicketLinkTrustHandler
Copyright © 2019 JBoss by Red Hat. All rights reserved.