public abstract class BaseFormAuthenticator
extends org.apache.catalina.authenticator.FormAuthenticator
| Modifier and Type | Field and Description |
|---|---|
protected org.picketlink.identity.federation.core.audit.PicketLinkAuditHelper |
auditHelper |
protected String |
canonicalizationMethod |
protected org.picketlink.identity.federation.core.saml.v2.interfaces.SAML2HandlerChain |
chain |
protected Map<String,Object> |
chainConfigOptions |
protected Lock |
chainLock
A Lock for Handler operations in the chain
|
protected String |
configFile |
protected org.picketlink.identity.federation.web.util.SAMLConfigurationProvider |
configProvider
The user can inject a fully qualified name of a
SAMLConfigurationProvider |
protected boolean |
enableAudit |
protected String |
identityURL |
protected String |
idpAddress |
protected X509Certificate |
idpCertificate
If the service provider is configured with an IDP metadata file, then this certificate can be picked up from the metadata
|
protected String |
issuerID |
protected org.picketlink.identity.federation.core.interfaces.TrustKeyManager |
keyManager |
protected static org.picketlink.common.PicketLinkLogger |
logger |
protected org.picketlink.config.federation.PicketLinkType |
picketLinkConfiguration |
protected String |
samlHandlerChainClass |
protected boolean |
saveRestoreRequest |
protected String |
serviceURL |
protected org.picketlink.config.federation.SPType |
spConfiguration |
protected Timer |
timer |
protected int |
timerInterval |
characterEncoding, info, landingPageAUTH_HEADER_NAME, cache, changeSessionIdOnAuthentication, context, disableProxyCaching, lifecycle, REALM_NAME, securePagesWithPragma, SESSION_ID_BYTES, sm, sso, started| Constructor and Description |
|---|
BaseFormAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doSupportSignature()
Indicates if digital signatures/validation of SAML assertions are enabled.
|
protected abstract String |
getBinding()
Return the SAML Binding that this authenticator supports
|
String |
getConfigFile()
Get the name of the configuration file
|
org.picketlink.config.federation.SPType |
getConfiguration()
Get the
SPType |
String |
getIdentityURL()
Get the Identity URL
|
X509Certificate |
getIdpCertificate()
Get the
X509Certificate of the IDP if provided via the IDP metadata file |
protected org.picketlink.identity.federation.saml.v2.metadata.IDPSSODescriptorType |
getIDPSSODescriptor(org.picketlink.identity.federation.saml.v2.metadata.EntitiesDescriptorType entities) |
protected org.picketlink.identity.federation.saml.v2.metadata.IDPSSODescriptorType |
handleMetadata(org.picketlink.identity.federation.saml.v2.metadata.EntitiesDescriptorType entities) |
protected org.picketlink.identity.federation.saml.v2.metadata.IDPSSODescriptorType |
handleMetadata(org.picketlink.identity.federation.saml.v2.metadata.EntityDescriptorType entityDescriptor) |
protected void |
initializeHandlerChain() |
protected abstract void |
initKeyProvider(org.apache.catalina.Context context) |
protected boolean |
localAuthentication(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.tomcat.util.descriptor.web.LoginConfig loginConfig)
Fall back on local authentication at the service provider side
|
protected void |
populateChainConfig() |
protected void |
processConfiguration()
Process the configuration from the configuration file
|
protected void |
processIDPMetadataFile(String idpMetadataFile)
Attempt to process a metadata file available locally
|
protected void |
sendToLogoutPage(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.catalina.Session session) |
void |
setAuditHelper(org.picketlink.identity.federation.core.audit.PicketLinkAuditHelper auditHelper) |
void |
setConfigFile(String configFile)
Set the name of the configuration file
|
void |
setConfigProvider(org.picketlink.identity.federation.web.util.SAMLConfigurationProvider configProvider)
Set an instance of the
SAMLConfigurationProvider |
void |
setConfigProvider(String cp)
Set the
SAMLConfigurationProvider fqn |
void |
setIdpAddress(String idpAddress)
If the request.getRemoteAddr is not exactly the IDP address that you have keyed in your deployment descriptor for
keystore alias, you can set it here explicitly
|
void |
setIssuerID(String issuerID)
Set a separate issuer id
|
void |
setLogOutPage(String logOutPage)
Set the logout page
|
void |
setSamlHandlerChainClass(String samlHandlerChainClass)
Set the SAML Handler Chain Class fqn
|
void |
setSaveRestoreRequest(boolean saveRestoreRequest)
Set whether the authenticator saves/restores the request
during form authentication
|
void |
setServiceURL(String serviceURL)
Set the service URL
|
void |
setTimerInterval(String value)
Set the Timer Value to reload the configuration
|
protected void |
startPicketLink() |
void |
testStart() |
protected boolean |
validate(org.apache.catalina.connector.Request request)
Perform validation os the request object
|
authenticate, forwardToErrorPage, forwardToLoginPage, getCharacterEncoding, getInfo, getLandingPage, matchRequest, restoreRequest, savedRequestURL, saveRequest, setCharacterEncoding, setLandingPageaddLifecycleListener, associate, authenticate, findLifecycleListeners, generateSessionId, getCache, getContainer, getDisableProxyCaching, getSecurePagesWithPragma, invoke, isChangeSessionIdOnAuthentication, login, logout, reauthenticateFromSSO, register, removeLifecycleListener, setCache, setChangeSessionIdOnAuthentication, setContainer, setDisableProxyCaching, setSecurePagesWithPragma, start, stop, unregisterprotected static final org.picketlink.common.PicketLinkLogger logger
protected boolean enableAudit
protected org.picketlink.identity.federation.core.audit.PicketLinkAuditHelper auditHelper
protected org.picketlink.identity.federation.core.interfaces.TrustKeyManager keyManager
protected org.picketlink.config.federation.SPType spConfiguration
protected org.picketlink.config.federation.PicketLinkType picketLinkConfiguration
protected String serviceURL
protected String identityURL
protected String issuerID
protected String configFile
protected transient X509Certificate idpCertificate
protected transient org.picketlink.identity.federation.core.saml.v2.interfaces.SAML2HandlerChain chain
protected transient String samlHandlerChainClass
protected boolean saveRestoreRequest
protected Lock chainLock
protected String canonicalizationMethod
protected org.picketlink.identity.federation.web.util.SAMLConfigurationProvider configProvider
SAMLConfigurationProviderprotected int timerInterval
protected Timer timer
protected String idpAddress
public void setIdpAddress(String idpAddress)
idpAddress - IP address of IDPpublic String getConfigFile()
public void setConfigFile(String configFile)
configFile - set config file pathpublic void setSamlHandlerChainClass(String samlHandlerChainClass)
samlHandlerChainClass - FQN of SAML Handler Chainpublic void setServiceURL(String serviceURL)
serviceURL - Service URLpublic void setSaveRestoreRequest(boolean saveRestoreRequest)
saveRestoreRequest - saves/restores the request during authentication if truepublic void setConfigProvider(String cp)
SAMLConfigurationProvider fqncp - fqn of a SAMLConfigurationProviderpublic void setConfigProvider(org.picketlink.identity.federation.web.util.SAMLConfigurationProvider configProvider)
SAMLConfigurationProviderconfigProvider - SAML IDP/SP config providerpublic org.picketlink.config.federation.SPType getConfiguration()
SPTypepublic void setIssuerID(String issuerID)
issuerID - id of the issuerpublic void setLogOutPage(String logOutPage)
logOutPage - logout page URLpublic void setTimerInterval(String value)
value - an integer value that represents timer value (in miliseconds)protected boolean validate(org.apache.catalina.connector.Request request)
request - Apache Catalina Requestpublic String getIdentityURL()
public X509Certificate getIdpCertificate()
X509Certificate of the IDP if provided via the IDP metadata fileX509Certificate or nullprotected boolean localAuthentication(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.tomcat.util.descriptor.web.LoginConfig loginConfig)
throws IOException
request - Apache Catalina Requestresponse - Apache Catalina ResponseloginConfig - Apache Catalina Login ConfigIOException - any I/O error during authenticationprotected abstract String getBinding()
protected void processIDPMetadataFile(String idpMetadataFile)
idpMetadataFile - path of configuration file of IDP Metadataprotected void processConfiguration()
protected org.picketlink.identity.federation.saml.v2.metadata.IDPSSODescriptorType handleMetadata(org.picketlink.identity.federation.saml.v2.metadata.EntitiesDescriptorType entities)
protected org.picketlink.identity.federation.saml.v2.metadata.IDPSSODescriptorType handleMetadata(org.picketlink.identity.federation.saml.v2.metadata.EntityDescriptorType entityDescriptor)
protected org.picketlink.identity.federation.saml.v2.metadata.IDPSSODescriptorType getIDPSSODescriptor(org.picketlink.identity.federation.saml.v2.metadata.EntitiesDescriptorType entities)
protected void initializeHandlerChain()
throws org.picketlink.common.exceptions.ConfigurationException,
org.picketlink.common.exceptions.ProcessingException
org.picketlink.common.exceptions.ConfigurationExceptionorg.picketlink.common.exceptions.ProcessingExceptionprotected void populateChainConfig()
throws org.picketlink.common.exceptions.ConfigurationException,
org.picketlink.common.exceptions.ProcessingException
org.picketlink.common.exceptions.ConfigurationExceptionorg.picketlink.common.exceptions.ProcessingExceptionprotected void sendToLogoutPage(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.catalina.Session session)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic void testStart()
throws org.apache.catalina.LifecycleException
org.apache.catalina.LifecycleExceptionprotected void startPicketLink()
throws org.apache.catalina.LifecycleException
org.apache.catalina.LifecycleExceptionprotected boolean doSupportSignature()
Indicates if digital signatures/validation of SAML assertions are enabled. Subclasses that supports signature should override this method.
protected abstract void initKeyProvider(org.apache.catalina.Context context)
throws org.apache.catalina.LifecycleException
org.apache.catalina.LifecycleExceptionpublic void setAuditHelper(org.picketlink.identity.federation.core.audit.PicketLinkAuditHelper auditHelper)
Copyright © 2020 JBoss by Red Hat. All Rights Reserved.