|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.webdav.auth.BaseAuthenticationFilter
org.alfresco.repo.webdav.auth.BaseSSOAuthenticationFilter
org.alfresco.repo.webdav.auth.BaseKerberosAuthenticationFilter
public abstract class BaseKerberosAuthenticationFilter
Base class with common code and initialisation for Kerberos authentication filters.
Field Summary |
---|
Fields inherited from class org.alfresco.repo.webdav.auth.BaseSSOAuthenticationFilter |
---|
MIME_HTML_TEXT |
Fields inherited from class org.alfresco.repo.webdav.auth.BaseAuthenticationFilter |
---|
ARG_TICKET, AUTHENTICATION_USER, authenticationComponent, authenticationService, NO_AUTH_REQUIRED, nodeService, personService, remoteUserMapper, transactionService |
Constructor Summary | |
---|---|
BaseKerberosAuthenticationFilter()
|
Method Summary | |
---|---|
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 |
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. |
Methods inherited from class org.alfresco.repo.webdav.auth.BaseSSOAuthenticationFilter |
---|
afterPropertiesSet, allowsTicketLogons, checkForTicketParameter, doFilter, getLoginPage, getSecurityConfigSection, getServerName, hasLoginPage, isActive, isNTLMSSPBlob, mapClientAddressToDomain, onLoginComplete, onValidate, onValidateFailed, redirectToLoginPage, setActive, setLoginPage, setServerConfiguration, setTicketLogons, writeLoginPageLink |
Methods inherited from class org.alfresco.repo.webdav.auth.BaseAuthenticationFilter |
---|
createUserEnvironment, createUserEnvironment, createUserObject, doInSystemTransaction, getLogger, getSessionUser, getUserAttributeName, handleLoginForm, invalidateSession, setAuthenticationComponent, setAuthenticationService, setNodeService, setPersonService, setRemoteUserMapper, setTransactionService, setUserAttributeName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseKerberosAuthenticationFilter()
Method Detail |
---|
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 setprotected 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 response
true
if authentication was successful
java.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
- HttpSession
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |