public class NegotiateAuthenticator
extends org.apache.catalina.authenticator.AuthenticatorBase
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowGuestLogin
The allow guest login.
|
protected IWindowsAuthProvider |
auth
The auth.
|
protected String |
info
The info.
|
protected org.slf4j.Logger |
log
The log.
|
protected PrincipalFormat |
principalFormat
The principal format.
|
protected Set<String> |
protocols
The protocols.
|
protected PrincipalFormat |
roleFormat
The role format.
|
alwaysUseSession, AUTH_HEADER_NAME, cache, changeSessionIdOnAuthentication, context, disableProxyCaching, REALM_NAME, securePagesWithPragma, secureRandomAlgorithm, secureRandomClass, secureRandomProvider, sessionIdGenerator, sm, sso
asyncSupported, container, containerLog, next
AFTER_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()
Instantiates a new negotiate authenticator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response) |
protected Principal |
doLogin(org.apache.catalina.connector.Request request,
String username,
String password) |
IWindowsAuthProvider |
getAuth()
Windows authentication provider.
|
protected String |
getAuthMethod() |
String |
getInfo()
Gets the info.
|
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 |
setProtocols(String value)
Set the authentication protocols.
|
void |
setRoleFormat(String format)
Set the principal format.
|
void |
startInternal() |
void |
stopInternal() |
associate, checkForCachedAuthentication, getAlwaysUseSession, getCache, getChangeSessionIdOnAuthentication, getContainer, getDisableProxyCaching, getRealmName, getRequestCertificates, getSecurePagesWithPragma, getSecureRandomAlgorithm, getSecureRandomClass, getSecureRandomProvider, invoke, login, logout, reauthenticateFromSSO, register, setAlwaysUseSession, setCache, setChangeSessionIdOnAuthentication, setContainer, setDisableProxyCaching, setSecurePagesWithPragma, setSecureRandomAlgorithm, setSecureRandomClass, setSecureRandomProvider
backgroundProcess, event, getDomainInternal, getNext, getObjectNameKeyProperties, initInternal, isAsyncSupported, setAsyncSupported, setNext, toString
destroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister
protected String info
protected org.slf4j.Logger log
protected PrincipalFormat principalFormat
protected PrincipalFormat roleFormat
protected boolean allowGuestLogin
protected IWindowsAuthProvider auth
public NegotiateAuthenticator()
public void startInternal() throws org.apache.catalina.LifecycleException
startInternal
in class org.apache.catalina.authenticator.AuthenticatorBase
org.apache.catalina.LifecycleException
public void stopInternal() throws org.apache.catalina.LifecycleException
stopInternal
in class org.apache.catalina.authenticator.AuthenticatorBase
org.apache.catalina.LifecycleException
public boolean authenticate(org.apache.catalina.connector.Request request, javax.servlet.http.HttpServletResponse response)
authenticate
in interface org.apache.catalina.Authenticator
authenticate
in class org.apache.catalina.authenticator.AuthenticatorBase
public IWindowsAuthProvider getAuth()
public void setAuth(IWindowsAuthProvider provider)
provider
- Class implements IWindowsAuthProvider.public String getInfo()
public 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.public void setProtocols(String value)
value
- Authentication protocolsprotected 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.AuthenticatorBase
Copyright © 2010–2015 com.github.dblock. All rights reserved.