public abstract class BaseKerberosAuthenticationFilter extends BaseSSOAuthenticationFilter implements CallbackHandler
loginPageLink, MIME_HTML_TEXT
ARG_TICKET, AUTHENTICATION_USER, authenticationComponent, authenticationListener, authenticationService, NO_AUTH_REQUIRED, nodeService, personService, remoteUserMapper, transactionService
AUTHENTICATION_USER
Constructor and Description |
---|
BaseKerberosAuthenticationFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticateRequest(ServletContext context,
HttpServletRequest req,
HttpServletResponse resp)
Authenticate user based on information in http request such as Authorization header or cached session
information.
|
protected boolean |
checkLoginPage(HttpServletRequest req,
HttpServletResponse resp) |
void |
handle(Callback[] callbacks)
JAAS callback handler
|
protected void |
init()
Initializes the filter.
|
void |
logonStartAgain(ServletContext context,
HttpServletRequest req,
HttpServletResponse resp)
The logon to start again
|
void |
restartLoginChallenge(ServletContext context,
HttpServletRequest req,
HttpServletResponse resp)
Restart the Kerberos logon process
|
void |
setJaasConfigEntryName(String jaasConfigEntryName)
Sets the HTTP service login configuration entry name.
|
void |
setPassword(String password)
Sets the HTTP service account password.
|
void |
setRealm(String realm)
Sets the HTTP service account realm.
|
void |
setStripKerberosUsernameSuffix(boolean stripKerberosUsernameSuffix)
Indicates whether the @domain suffix should be removed from Kerberos user IDs
|
afterPropertiesSet, allowsTicketLogons, checkForTicketParameter, doFilter, getLoginPage, getLoginPageLink, getSecurityConfigSection, getServerName, hasLoginPage, includeFallbackAuth, isActive, isFallbackEnabled, isNTLMSSPBlob, mapClientAddressToDomain, onLoginComplete, onValidate, onValidateFailed, performFallbackAuthentication, redirectToLoginPage, setActive, setFallback, setFallbackEnabled, setLoginPage, setLoginPageLink, setServerConfiguration, setTicketLogons, writeLoginPageLink
createUserEnvironment, createUserEnvironment, createUserObject, doInSystemTransaction, getLogger, getSessionUser, getUserAttributeName, handleLoginForm, invalidateSession, setAuthenticationComponent, setAuthenticationListener, setAuthenticationService, setNodeService, setPersonService, setRemoteUserMapper, setTransactionService, setUserAttributeName
public void setPassword(String password)
password
- the password to setpublic void setRealm(String realm)
realm
- the realm to setpublic void setJaasConfigEntryName(String jaasConfigEntryName)
"AlfrescoHTTP"
.jaasConfigEntryName
- the jaasConfigEntryName to setpublic void setStripKerberosUsernameSuffix(boolean stripKerberosUsernameSuffix)
stripKerberosUsernameSuffix
- true
if the @domain suffix should be removed from Kerberos user IDsprotected void init() throws ServletException
BaseSSOAuthenticationFilter
BaseSSOAuthenticationFilter.isActive()
. Subclasses
should override.init
in class BaseSSOAuthenticationFilter
ServletException
public boolean authenticateRequest(ServletContext context, HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException
AuthenticationDriver
authenticateRequest
in interface AuthenticationDriver
context
- the contextreq
- http requestresp
- http responsetrue
if authentication was successfulIOException
ServletException
protected boolean checkLoginPage(HttpServletRequest req, HttpServletResponse resp)
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle
in interface CallbackHandler
callbacks
- Callback[]IOException
UnsupportedCallbackException
public void restartLoginChallenge(ServletContext context, HttpServletRequest req, HttpServletResponse resp) throws IOException
restartLoginChallenge
in interface AuthenticationDriver
context
- ServletContextreq
- HttpServletRequestresp
- HttpServletResponseIOException
public void logonStartAgain(ServletContext context, HttpServletRequest req, HttpServletResponse resp) throws IOException
context
- ServletContextreq
- HttpServletRequestresp
- HttpServletResponseIOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.