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.
|
algorithm, cache, changeSessionIdOnAuthentication, context, DEFAULT_ALGORITHM, digest, disableProxyCaching, entropy, lifecycle, random, randomClass, REALM_NAME, securePagesWithPragma, SESSION_ID_BYTES, sm, sso, started| Constructor and Description |
|---|
NegotiateAuthenticator()
Instantiates a new negotiate authenticator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.catalina.deploy.LoginConfig loginConfig) |
IWindowsAuthProvider |
getAuth()
Windows authentication provider.
|
String |
getInfo() |
PrincipalFormat |
getPrincipalFormat()
Principal format.
|
PrincipalFormat |
getRoleFormat()
Principal format.
|
boolean |
isAllowGuestLogin()
True if Guest login permitted.
|
protected void |
sendError(org.apache.catalina.connector.Response response,
int code)
Send an error code.
|
protected void |
sendUnauthorized(org.apache.catalina.connector.Response 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 |
start() |
void |
stop() |
addLifecycleListener, associate, findLifecycleListeners, generateSessionId, getAlgorithm, getCache, getChangeSessionIdOnAuthentication, getContainer, getDigest, getDisableProxyCaching, getEntropy, getRandom, getRandomClass, getSecurePagesWithPragma, invoke, reauthenticateFromSSO, register, removeLifecycleListener, setAlgorithm, setCache, setChangeSessionIdOnAuthentication, setContainer, setDisableProxyCaching, setEntropy, setRandomClass, setSecurePagesWithPragmaprotected String info
protected org.slf4j.Logger log
protected PrincipalFormat principalFormat
protected PrincipalFormat roleFormat
protected boolean allowGuestLogin
protected IWindowsAuthProvider auth
public NegotiateAuthenticator()
public void start()
start in interface org.apache.catalina.Lifecyclestart in class org.apache.catalina.authenticator.AuthenticatorBasepublic void stop()
stop in interface org.apache.catalina.Lifecyclestop in class org.apache.catalina.authenticator.AuthenticatorBasepublic boolean authenticate(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.catalina.deploy.LoginConfig loginConfig)
authenticate 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.public void setProtocols(String value)
value - Authentication protocolsprotected void sendUnauthorized(org.apache.catalina.connector.Response response)
response - HTTP Responseprotected void sendError(org.apache.catalina.connector.Response response,
int code)
response - HTTP Responsecode - Error CodeCopyright © 2010–2015 com.github.dblock. All rights reserved.