public abstract class BaseKerberosAuthenticationFilter extends BaseSSOAuthenticationFilter implements javax.security.auth.callback.CallbackHandler
MIME_HTML_TEXT
ARG_TICKET, AUTHENTICATION_USER, authenticationComponent, authenticationListener, authenticationService, NO_AUTH_REQUIRED, nodeService, personService, remoteUserMapper, transactionService
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.
|
void |
handle(javax.security.auth.callback.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(java.lang.String jaasConfigEntryName)
Sets the HTTP service login configuration entry name.
|
void |
setPassword(java.lang.String password)
Sets the HTTP service account password.
|
void |
setRealm(java.lang.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, getSecurityConfigSection, getServerName, hasLoginPage, isActive, isNTLMSSPBlob, mapClientAddressToDomain, onLoginComplete, onValidate, onValidateFailed, redirectToLoginPage, setActive, setLoginPage, setServerConfiguration, setTicketLogons, writeLoginPageLink
createUserEnvironment, createUserEnvironment, createUserObject, doInSystemTransaction, getLogger, getSessionUser, getUserAttributeName, handleLoginForm, invalidateSession, setAuthenticationComponent, setAuthenticationListener, setAuthenticationService, setNodeService, setPersonService, setRemoteUserMapper, setTransactionService, setUserAttributeName
public void setPassword(java.lang.String password)
password
- the password to setpublic void setRealm(java.lang.String realm)
realm
- the realm to setpublic void setJaasConfigEntryName(java.lang.String jaasConfigEntryName)
"AlfrescoHTTP"
.loginEntryName
- the loginEntryName 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
BaseSSOAuthenticationFilter
BaseSSOAuthenticationFilter.isActive()
. Subclasses
should override.init
in class BaseSSOAuthenticationFilter
javax.servlet.ServletException
public boolean authenticateRequest(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws java.io.IOException, javax.servlet.ServletException
AuthenticationDriver
authenticateRequest
in interface AuthenticationDriver
context
- the contextreq
- http requestresp
- http responsetrue
if authentication was successfuljava.io.IOException
javax.servlet.ServletException
public void handle(javax.security.auth.callback.Callback[] callbacks) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException
handle
in interface javax.security.auth.callback.CallbackHandler
callbacks
- Callback[]java.io.IOException
javax.security.auth.callback.UnsupportedCallbackException
public void restartLoginChallenge(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws java.io.IOException
restartLoginChallenge
in interface AuthenticationDriver
resp
- HttpServletResponsehttpSess
- HttpSessionjava.io.IOException
public void logonStartAgain(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws java.io.IOException
resp
- HttpServletResponsehttpSess
- HttpSessionjava.io.IOException
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.