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, landingPagealwaysUseSession, AUTH_HEADER_NAME, cache, changeSessionIdOnAuthentication, context, disableProxyCaching, REALM_NAME, securePagesWithPragma, secureRandomAlgorithm, secureRandomClass, secureRandomProvider, sessionIdGenerator, sm, ssoasyncSupported, container, containerLog, nextAFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT| 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, validateforwardToErrorPage, forwardToLoginPage, getAuthMethod, getCharacterEncoding, getLandingPage, isContinuationRequired, matchRequest, savedRequestURL, saveRequest, setCharacterEncoding, setLandingPageassociate, checkForCachedAuthentication, doLogin, getAlwaysUseSession, getCache, getChangeSessionIdOnAuthentication, getContainer, getDisableProxyCaching, getRealmName, getRequestCertificates, getSecurePagesWithPragma, getSecureRandomAlgorithm, getSecureRandomClass, getSecureRandomProvider, invoke, login, logout, notify, reauthenticateFromSSO, register, setAlwaysUseSession, setCache, setChangeSessionIdOnAuthentication, setContainer, setDisableProxyCaching, setSecurePagesWithPragma, setSecureRandomAlgorithm, setSecureRandomClass, setSecureRandomProvider, startInternal, stopInternalbackgroundProcess, getDomainInternal, getNext, getObjectNameKeyProperties, initInternal, isAsyncSupported, setAsyncSupported, setNext, toStringdestroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, 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
doAuthenticate in class org.apache.catalina.authenticator.FormAuthenticatorIOExceptionpublic 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 © 2018 JBoss by Red Hat. All Rights Reserved.