public abstract class BaseKerberosAuthenticationFilter extends BaseSSOAuthenticationFilter implements CallbackHandler
loginPageLink, MIME_HTML_TEXTARG_TICKET, AUTHENTICATION_USER, authenticationComponent, authenticationListener, authenticationService, NO_AUTH_REQUIRED, nodeService, personService, remoteUserMapper, transactionServiceAUTHENTICATION_USER| Constructor and Description |
|---|
BaseKerberosAuthenticationFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticateRequest(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Authenticate user based on information in http request such as Authorization header or cached session
information.
|
protected boolean |
checkLoginPage(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
handle(Callback[] callbacks)
JAAS callback handler
|
protected void |
init()
Initializes the filter.
|
void |
logonStartAgain(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
The logon to start again
|
void |
restartLoginChallenge(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.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, writeLoginPageLinkcreateUserEnvironment, createUserEnvironment, createUserObject, doInSystemTransaction, getLogger, getSessionUser, getUserAttributeName, handleLoginForm, invalidateSession, setAuthenticationComponent, setAuthenticationListener, setAuthenticationService, setNodeService, setPersonService, setRemoteUserMapper, setTransactionService, setUserAttributeNamepublic 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 javax.servlet.ServletException
BaseSSOAuthenticationFilterBaseSSOAuthenticationFilter.isActive(). Subclasses
should override.init in class BaseSSOAuthenticationFilterjavax.servlet.ServletExceptionpublic boolean authenticateRequest(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException,
javax.servlet.ServletException
AuthenticationDriverauthenticateRequest in interface AuthenticationDrivercontext - the contextreq - http requestresp - http responsetrue if authentication was successfulIOExceptionjavax.servlet.ServletExceptionprotected boolean checkLoginPage(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle in interface CallbackHandlercallbacks - Callback[]IOExceptionUnsupportedCallbackExceptionpublic void restartLoginChallenge(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
restartLoginChallenge in interface AuthenticationDrivercontext - ServletContextreq - HttpServletRequestresp - HttpServletResponseIOExceptionpublic void logonStartAgain(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
context - ServletContextreq - HttpServletRequestresp - HttpServletResponseIOExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.