public abstract class BaseSAML2Handler extends Object implements SAML2Handler
SAML2Handler.HANDLER_TYPE
Modifier and Type | Field and Description |
---|---|
protected SAML2HandlerChainConfig |
handlerChainConfig |
protected SAML2HandlerConfig |
handlerConfig |
protected static PicketLinkLogger |
logger |
ASSERTION_CONSUMER_URL, CLOCK_SKEW_MILIS, DISABLE_AUTHN_STATEMENT, DISABLE_ROLE_PICKING, DISABLE_SENDING_ROLES, ROLE_KEY, USE_MULTI_VALUED_ROLES
Constructor and Description |
---|
BaseSAML2Handler() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkDestination(String destination,
String expectedDestination) |
protected void |
checkDestination(URI destination,
String expectedDestination) |
void |
generateSAMLRequest(SAML2HandlerRequest request,
SAML2HandlerResponse response)
Generate a SAML Request to be sent to the IDP if the handler is invoked at the SP and vice-versa
|
static HttpServletRequest |
getHttpRequest(SAML2HandlerRequest request) |
static HttpSession |
getHttpSession(SAML2HandlerRequest request) |
protected ProviderType |
getProviderconfig() |
SAML2Handler.HANDLER_TYPE |
getType()
Get the type of handler - handler at IDP or SP
|
void |
handleStatusResponseType(SAML2HandlerRequest request,
SAML2HandlerResponse response)
Handle a SAML2 Status Response Type
|
void |
initChainConfig(SAML2HandlerChainConfig handlerChainConfig)
Initialize the handler
|
void |
initHandlerConfig(SAML2HandlerConfig handlerConfig)
Initialize the handler
|
void |
reset()
Shed all state
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleRequestType
protected static final PicketLinkLogger logger
protected SAML2HandlerConfig handlerConfig
protected SAML2HandlerChainConfig handlerChainConfig
public void initHandlerConfig(SAML2HandlerConfig handlerConfig) throws ConfigurationException
initHandlerConfig
in interface SAML2Handler
options
- ConfigurationException
public void initChainConfig(SAML2HandlerChainConfig handlerChainConfig) throws ConfigurationException
SAML2Handler
initChainConfig
in interface SAML2Handler
ConfigurationException
public SAML2Handler.HANDLER_TYPE getType()
getType
in interface SAML2Handler
public void reset() throws ProcessingException
SAML2Handler
reset
in interface SAML2Handler
ProcessingException
public void generateSAMLRequest(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException
SAML2Handler
generateSAMLRequest
in interface SAML2Handler
ProcessingException
SAML2Handler.generateSAMLRequest(SAML2HandlerRequest, SAML2HandlerResponse)
public void handleStatusResponseType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException
SAML2Handler
handleStatusResponseType
in interface SAML2Handler
ProcessingException
SAML2Handler#handleStatusResponseType(SAML2HandlerRequest, SAML2HandlerResponse)}
public static HttpServletRequest getHttpRequest(SAML2HandlerRequest request)
public static HttpSession getHttpSession(SAML2HandlerRequest request)
protected ProviderType getProviderconfig()
protected void checkDestination(String destination, String expectedDestination) throws ProcessingException
ProcessingException
protected void checkDestination(URI destination, String expectedDestination) throws ProcessingException
ProcessingException
Copyright © 2019 JBoss by Red Hat. All rights reserved.