public class NegotiateAuthenticator
extends org.apache.catalina.authenticator.AuthenticatorBase
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_allowGuestLogin |
protected IWindowsAuthProvider |
_auth |
protected String |
_info |
protected org.slf4j.Logger |
_log |
protected PrincipalFormat |
_principalFormat |
protected PrincipalFormat |
_roleFormat |
alwaysUseSession, AUTH_HEADER_NAME, cache, changeSessionIdOnAuthentication, context, disableProxyCaching, info, REALM_NAME, securePagesWithPragma, secureRandomAlgorithm, secureRandomClass, secureRandomProvider, sessionIdGenerator, sm, ssoasyncSupported, container, containerLog, nextAFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
NegotiateAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response,
org.apache.catalina.deploy.LoginConfig loginConfig) |
protected Principal |
doLogin(org.apache.catalina.connector.Request request,
String username,
String password) |
IWindowsAuthProvider |
getAuth()
Windows authentication provider.
|
protected String |
getAuthMethod() |
String |
getInfo() |
PrincipalFormat |
getPrincipalFormat()
Principal format.
|
PrincipalFormat |
getRoleFormat()
Principal format.
|
boolean |
isAllowGuestLogin()
True if Guest login permitted.
|
protected void |
sendError(javax.servlet.http.HttpServletResponse response,
int code)
Send an error code.
|
protected void |
sendUnauthorized(javax.servlet.http.HttpServletResponse response)
Send a 401 Unauthorized along with protocol authentication headers.
|
void |
setAllowGuestLogin(boolean value)
Set whether Guest login is permitted.
|
void |
setAuth(IWindowsAuthProvider provider)
Set Windows auth provider.
|
void |
setPrincipalFormat(String format)
Set the principal format.
|
void |
setRoleFormat(String format)
Set the principal format.
|
void |
startInternal() |
void |
stopInternal() |
associate, authenticate, getAlwaysUseSession, getCache, getChangeSessionIdOnAuthentication, getContainer, getDisableProxyCaching, getSecurePagesWithPragma, getSecureRandomAlgorithm, getSecureRandomClass, getSecureRandomProvider, invoke, login, logout, reauthenticateFromSSO, register, setAlwaysUseSession, setCache, setChangeSessionIdOnAuthentication, setContainer, setDisableProxyCaching, setSecurePagesWithPragma, setSecureRandomAlgorithm, setSecureRandomClass, setSecureRandomProviderbackgroundProcess, event, getDomainInternal, getNext, getObjectNameKeyProperties, initInternal, isAsyncSupported, setAsyncSupported, setNext, toStringdestroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregisterprotected String _info
protected org.slf4j.Logger _log
protected PrincipalFormat _principalFormat
protected PrincipalFormat _roleFormat
protected boolean _allowGuestLogin
protected IWindowsAuthProvider _auth
public void startInternal()
throws org.apache.catalina.LifecycleException
startInternal in class org.apache.catalina.authenticator.AuthenticatorBaseorg.apache.catalina.LifecycleExceptionpublic void stopInternal()
throws org.apache.catalina.LifecycleException
stopInternal in class org.apache.catalina.authenticator.AuthenticatorBaseorg.apache.catalina.LifecycleExceptionpublic boolean authenticate(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response,
org.apache.catalina.deploy.LoginConfig loginConfig)
authenticate in interface org.apache.catalina.Authenticatorauthenticate in class org.apache.catalina.authenticator.AuthenticatorBasepublic IWindowsAuthProvider getAuth()
public void setAuth(IWindowsAuthProvider provider)
provider - Class implements IWindowsAuthProvider.public String getInfo()
getInfo in interface org.apache.catalina.ValvegetInfo in class org.apache.catalina.authenticator.AuthenticatorBasepublic void setPrincipalFormat(String format)
format - Principal format.public PrincipalFormat getPrincipalFormat()
public void setRoleFormat(String format)
format - Role format.public PrincipalFormat getRoleFormat()
public boolean isAllowGuestLogin()
public void setAllowGuestLogin(boolean value)
value - True or false.protected void sendUnauthorized(javax.servlet.http.HttpServletResponse response)
response - HTTP Responseprotected void sendError(javax.servlet.http.HttpServletResponse response,
int code)
response - HTTP Responsecode - Error Codeprotected String getAuthMethod()
getAuthMethod in class org.apache.catalina.authenticator.AuthenticatorBaseCopyright © 2014. All Rights Reserved.