public abstract class AbstractSPFormAuthenticator extends BaseFormAuthenticator
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
jbossEnv |
auditHelper, canonicalizationMethod, chain, chainConfigOptions, chainLock, configFile, configProvider, enableAudit, identityURL, idpAddress, idpCertificate, issuerID, keyManager, logger, picketLinkConfiguration, samlHandlerChainClass, saveRestoreRequest, serviceURL, spConfiguration, timer, timerIntervalcharacterEncoding, info, landingPageAUTH_HEADER_NAME, cache, changeSessionIdOnAuthentication, context, disableProxyCaching, lifecycle, REALM_NAME, securePagesWithPragma, SESSION_ID_BYTES, sm, sso, started| Constructor and Description |
|---|
AbstractSPFormAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response)
Authenticate the request
|
protected boolean |
doAuthenticate(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response) |
protected String |
getBinding()
Return the SAML Binding that this authenticator supports
|
org.apache.catalina.Context |
getContext() |
protected abstract String |
getContextPath()
Subclasses need to return the context path
based on the capability of their servlet api
|
protected Principal |
getGenericPrincipal(org.apache.catalina.connector.Request request,
String username,
List<String> roles) |
protected void |
initKeyProvider(org.apache.catalina.Context context)
Initialize the KeyProvider configurations.
|
protected boolean |
isHttpPostBinding()
Indicates if the SP is configure with HTTP POST Binding.
|
protected boolean |
isPOSTBindingResponse() |
boolean |
restoreRequest(org.apache.catalina.connector.Request request,
org.apache.catalina.Session session) |
protected void |
sendHttpPostBindingRequest(String destination,
Document samlDocument,
String relayState,
org.apache.catalina.connector.Response response,
boolean willSendRequest)
Sends a HTTP POST request to the IDP.
|
protected void |
sendHttpRedirectRequest(String destination,
Document samlDocument,
String relayState,
org.apache.catalina.connector.Response response,
boolean willSendRequest,
String destinationQueryStringWithSignature)
Sends a HTTP Redirect request to the IDP.
|
protected void |
sendRequestToIDP(String destination,
Document samlDocument,
String relayState,
org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
boolean willSendRequest,
String destinationQueryStringWithSignature)
Send the request to the IDP.
|
protected void |
startPicketLink() |
doSupportSignature, getConfigFile, getConfiguration, getIdentityURL, getIdpCertificate, getIDPSSODescriptor, handleMetadata, handleMetadata, initializeHandlerChain, localAuthentication, populateChainConfig, processConfiguration, processIDPMetadataFile, sendToLogoutPage, setAuditHelper, setConfigFile, setConfigProvider, setConfigProvider, setIdpAddress, setIssuerID, setLogOutPage, setSamlHandlerChainClass, setSaveRestoreRequest, setServiceURL, setTimerInterval, testStart, validateauthenticate, forwardToErrorPage, forwardToLoginPage, getCharacterEncoding, getInfo, getLandingPage, matchRequest, savedRequestURL, saveRequest, setCharacterEncoding, setLandingPageaddLifecycleListener, associate, findLifecycleListeners, generateSessionId, getCache, getContainer, getDisableProxyCaching, getSecurePagesWithPragma, invoke, isChangeSessionIdOnAuthentication, login, logout, reauthenticateFromSSO, register, removeLifecycleListener, setCache, setChangeSessionIdOnAuthentication, setContainer, setDisableProxyCaching, setSecurePagesWithPragma, start, stop, unregisterprotected void startPicketLink()
throws org.apache.catalina.LifecycleException
startPicketLink in class BaseFormAuthenticatororg.apache.catalina.LifecycleExceptionprotected void sendRequestToIDP(String destination, Document samlDocument, String relayState, org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response, boolean willSendRequest, String destinationQueryStringWithSignature) throws org.picketlink.common.exceptions.ProcessingException, org.picketlink.common.exceptions.ConfigurationException, IOException
Send the request to the IDP. Subclasses should override this method to implement how requests must be sent to the IDP.
destination - idp urlsamlDocument - request or response documentrelayState - used in SAML Workflowresponse - Apache Catalina HTTP Responserequest - Apache Catalina HTTP RequestwillSendRequest - are we sending Request or Response to IDPdestinationQueryStringWithSignature - used only with Redirect binding and with signature enabled.org.picketlink.common.exceptions.ProcessingException - Exception to indicate a server processing errororg.picketlink.common.exceptions.ConfigurationException - Exception indicating an issue with the configurationIOException - I/O exceptionprotected void sendHttpRedirectRequest(String destination, Document samlDocument, String relayState, org.apache.catalina.connector.Response response, boolean willSendRequest, String destinationQueryStringWithSignature) throws IOException, org.picketlink.common.exceptions.ProcessingException, org.picketlink.common.exceptions.ConfigurationException
Sends a HTTP Redirect request to the IDP.
destination - idp urlsamlDocument - SAML request documentrelayState - used in SAML Workflowresponse - Apache Catalina HTTP ResponsewillSendRequest - are we sending Request or Response to IDPdestinationQueryStringWithSignature - used only with Redirect binding and with signature enabled.IOException - I/O exceptionUnsupportedEncodingException - when decoding SAML Messageorg.picketlink.common.exceptions.ConfigurationException - Exception indicating an issue with the configurationorg.picketlink.common.exceptions.ProcessingException - Exception to indicate a server processing errorprotected void sendHttpPostBindingRequest(String destination, Document samlDocument, String relayState, org.apache.catalina.connector.Response response, boolean willSendRequest) throws org.picketlink.common.exceptions.ProcessingException, IOException, org.picketlink.common.exceptions.ConfigurationException
Sends a HTTP POST request to the IDP.
destination - idp urlsamlDocument - request or response documentrelayState - used in SAML Workflowresponse - Apache Catalina HTTP ResponsewillSendRequest - are we sending Request or Response to IDPorg.picketlink.common.exceptions.ProcessingException - Exception to indicate a server processing errororg.picketlink.common.exceptions.ConfigurationException - Exception indicating an issue with the configurationIOException - I/O exceptionprotected void initKeyProvider(org.apache.catalina.Context context)
throws org.apache.catalina.LifecycleException
Initialize the KeyProvider configurations. This configurations are to be used during signing and validation of SAML assertions.
initKeyProvider in class BaseFormAuthenticatorcontext - Apache Catalina Contextorg.apache.catalina.LifecycleException - any exception occurred while processing key providerprotected boolean doAuthenticate(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionpublic boolean authenticate(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response)
throws IOException
authenticate in interface org.apache.catalina.Authenticatorauthenticate in class org.apache.catalina.authenticator.AuthenticatorBaserequest - Apache Catalina Requestresponse - Apache Catalina ResponseIOException - any I/O exceptionprotected boolean isPOSTBindingResponse()
protected String getBinding()
BaseFormAuthenticatorgetBinding in class BaseFormAuthenticatorprotected boolean isHttpPostBinding()
Indicates if the SP is configure with HTTP POST Binding.
public org.apache.catalina.Context getContext()
public boolean restoreRequest(org.apache.catalina.connector.Request request,
org.apache.catalina.Session session)
throws IOException
restoreRequest in class org.apache.catalina.authenticator.FormAuthenticatorIOExceptionprotected abstract String getContextPath()
Copyright © 2021 JBoss by Red Hat. All Rights Reserved.