public class KerberosAuthenticationFilter extends BaseKerberosAuthenticationFilter
loginPageLink, MIME_HTML_TEXT
ARG_TICKET, AUTHENTICATION_USER, authenticationComponent, authenticationListener, authenticationService, NO_AUTH_REQUIRED, nodeService, personService, remoteUserMapper, transactionService
AUTHENTICATION_USER
Constructor and Description |
---|
KerberosAuthenticationFilter() |
Modifier and Type | Method and Description |
---|---|
protected SessionUser |
createUserObject(String userName,
String ticket,
org.alfresco.service.cmr.repository.NodeRef personNode,
org.alfresco.service.cmr.repository.NodeRef homeSpaceRef)
Create the user object that will be stored in the session.
|
protected org.apache.commons.logging.Log |
getLogger()
Return the logger.
|
protected void |
init()
Initializes the filter.
|
protected boolean |
onLoginComplete(ServletContext sc,
HttpServletRequest req,
HttpServletResponse res,
boolean userInit)
Callback executed on completion of NTLM login
|
protected void |
onValidate(ServletContext sc,
HttpServletRequest req,
HttpServletResponse res,
WebCredentials credentials)
Callback executed on successful ticket validation during Type3 Message processing.
|
protected void |
onValidateFailed(ServletContext sc,
HttpServletRequest req,
HttpServletResponse res,
HttpSession session,
WebCredentials credentials)
Callback executed on failed authentication of a user ticket during Type3 Message processing
|
protected void |
writeLoginPageLink(ServletContext context,
HttpServletRequest req,
HttpServletResponse resp)
Writes link to login page and refresh tag which cause user
to be redirected to the login page.
|
authenticateRequest, checkLoginPage, handle, logonStartAgain, restartLoginChallenge, setJaasConfigEntryName, setPassword, setRealm, setStripKerberosUsernameSuffix
afterPropertiesSet, allowsTicketLogons, checkForTicketParameter, doFilter, getLoginPage, getLoginPageLink, getSecurityConfigSection, getServerName, hasLoginPage, includeFallbackAuth, isActive, isFallbackEnabled, isNTLMSSPBlob, mapClientAddressToDomain, performFallbackAuthentication, redirectToLoginPage, setActive, setFallback, setFallbackEnabled, setLoginPage, setLoginPageLink, setServerConfiguration, setTicketLogons
createUserEnvironment, createUserEnvironment, doInSystemTransaction, getSessionUser, getUserAttributeName, handleLoginForm, invalidateSession, setAuthenticationComponent, setAuthenticationListener, setAuthenticationService, setNodeService, setPersonService, setRemoteUserMapper, setTransactionService, setUserAttributeName
protected void init() throws ServletException
BaseSSOAuthenticationFilter
BaseSSOAuthenticationFilter.isActive()
. Subclasses
should override.init
in class BaseKerberosAuthenticationFilter
ServletException
protected SessionUser createUserObject(String userName, String ticket, org.alfresco.service.cmr.repository.NodeRef personNode, org.alfresco.service.cmr.repository.NodeRef homeSpaceRef)
BaseAuthenticationFilter
createUserObject
in class BaseAuthenticationFilter
userName
- Stringticket
- StringpersonNode
- NodeRefhomeSpaceRef
- NodeRefprotected void onValidate(ServletContext sc, HttpServletRequest req, HttpServletResponse res, WebCredentials credentials)
BaseSSOAuthenticationFilter
onValidate
in class BaseSSOAuthenticationFilter
sc
- the servlet contextreq
- the requestres
- the responseprotected void onValidateFailed(ServletContext sc, HttpServletRequest req, HttpServletResponse res, HttpSession session, WebCredentials credentials) throws IOException
BaseSSOAuthenticationFilter
onValidateFailed
in class BaseSSOAuthenticationFilter
sc
- the servlet contextreq
- HttpServletRequestres
- HttpServletResponsesession
- HttpSessionIOException
protected boolean onLoginComplete(ServletContext sc, HttpServletRequest req, HttpServletResponse res, boolean userInit) throws IOException
BaseSSOAuthenticationFilter
onLoginComplete
in class BaseSSOAuthenticationFilter
req
- HttpServletRequestres
- HttpServletResponseIOException
protected void writeLoginPageLink(ServletContext context, HttpServletRequest req, HttpServletResponse resp) throws IOException
BaseSSOAuthenticationFilter
writeLoginPageLink
in class BaseSSOAuthenticationFilter
context
- ServletContextreq
- HttpServletRequestresp
- HttpServletResponseIOException
protected final org.apache.commons.logging.Log getLogger()
BaseAuthenticationFilter
getLogger
in class BaseAuthenticationFilter
Copyright © 2005–2017 Alfresco Software. All rights reserved.