public class MixedAuthenticator
extends org.apache.catalina.authenticator.AuthenticatorBase
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowGuestLogin |
protected waffle.windows.auth.IWindowsAuthProvider |
auth |
protected String |
info |
protected org.slf4j.Logger |
log |
protected waffle.windows.auth.PrincipalFormat |
principalFormat |
protected Set<String> |
protocols |
protected waffle.windows.auth.PrincipalFormat |
roleFormat |
algorithm, cache, changeSessionIdOnAuthentication, context, DEFAULT_ALGORITHM, digest, disableProxyCaching, entropy, lifecycle, random, randomClass, REALM_NAME, securePagesWithPragma, SESSION_ID_BYTES, sm, sso, started| Constructor and Description |
|---|
MixedAuthenticator() |
| 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) |
waffle.windows.auth.IWindowsAuthProvider |
getAuth()
Windows authentication provider.
|
String |
getInfo() |
waffle.windows.auth.PrincipalFormat |
getPrincipalFormat()
Principal format.
|
waffle.windows.auth.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(waffle.windows.auth.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 waffle.windows.auth.PrincipalFormat principalFormat
protected waffle.windows.auth.PrincipalFormat roleFormat
protected boolean allowGuestLogin
protected waffle.windows.auth.IWindowsAuthProvider auth
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 waffle.windows.auth.IWindowsAuthProvider getAuth()
public void setAuth(waffle.windows.auth.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 waffle.windows.auth.PrincipalFormat getPrincipalFormat()
public void setRoleFormat(String format)
format - Role format.public waffle.windows.auth.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.