public abstract class BaseKerberosAuthenticationFilter extends BaseSSOAuthenticationFilter implements javax.security.auth.callback.CallbackHandler
MIME_HTML_TEXTARG_TICKET, AUTHENTICATION_USER, authenticationComponent, 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, writeLoginPageLinkcreateUserEnvironment, createUserEnvironment, createUserObject, doInSystemTransaction, getLogger, getSessionUser, getUserAttributeName, handleLoginForm, invalidateSession, setAuthenticationComponent, setAuthenticationService, setNodeService, setPersonService, setRemoteUserMapper, setTransactionService, setUserAttributeNamepublic 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
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 java.io.IOException,
javax.servlet.ServletException
AuthenticationDriverauthenticateRequest in interface AuthenticationDrivercontext - the contextreq - http requestresp - http responsetrue if authentication was successfuljava.io.IOExceptionjavax.servlet.ServletExceptionpublic void handle(javax.security.auth.callback.Callback[] callbacks)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
handle in interface javax.security.auth.callback.CallbackHandlercallbacks - Callback[]java.io.IOExceptionjavax.security.auth.callback.UnsupportedCallbackExceptionpublic void restartLoginChallenge(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException
restartLoginChallenge in interface AuthenticationDriverresp - HttpServletResponsehttpSess - HttpSessionjava.io.IOExceptionpublic void logonStartAgain(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException
resp - HttpServletResponsehttpSess - HttpSessionjava.io.IOExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.