public class BasicAuthSecurityHandler
extends org.eclipse.jetty.security.ConstraintSecurityHandler
org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandler
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener
Constructor | Description |
---|---|
BasicAuthSecurityHandler() |
Modifier and Type | Method | Description |
---|---|---|
BasicAuthSecurityHandler |
addRetryBasicAuthExcludedPath(String path) |
Add path to ignore #setRetryBasicAuth effect
|
void |
handle(String pathInContext,
org.eclipse.jetty.server.Request baseRequest,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
|
BasicAuthSecurityHandler |
setBasicAuth(BasicAuth basicAuth) |
Set the condition of basic authentication
|
BasicAuthSecurityHandler |
setRetryBasicAuth(boolean enabled) |
Enabling retry of basic authentication when authorization failed
If the user-A who has already passed the BASIC authentication for page-A.
|
BasicAuthSecurityHandler |
setSkipBasicAuthCallback(BasicAuthLogicCore.SkipBasicAuthCallback listener) |
doError, dumpThis, getServer
doShutdown, expandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass, setServer
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString
addConstraintMapping, addRole, checkPathsWithUncoveredHttpMethods, checkUserDataPermissions, checkWebResourcePermissions, configureRoleInfo, createConstraint, createConstraint, createConstraint, createConstraint, createConstraint, createConstraintsWithMappingsForPath, doStart, doStop, dump, getConstraintMappings, getConstraintMappingsForPath, getOmittedMethods, getPathsWithUncoveredHttpMethods, getRoles, isAuthMandatory, isDenyUncoveredHttpMethods, omissionsExist, prepareConstraintInfo, processConstraintMapping, processConstraintMappingWithMethodOmissions, removeConstraintMappingsForPath, setConstraintMappings, setConstraintMappings, setConstraintMappings, setDenyUncoveredHttpMethods, setRoles
addBean, addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
destroy, expandChildren, getHandler, getHandlers, insertHandler, setHandler
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkSecurity, findIdentityService, findLoginService, getAuthenticator, getAuthenticatorFactory, getAuthMethod, getCurrentSecurityHandler, getIdentityService, getInitParameter, getInitParameterNames, getLoginService, getRealmName, isCheckWelcomeFiles, isSessionRenewedOnAuthentication, logout, setAuthenticator, setAuthenticatorFactory, setAuthMethod, setCheckWelcomeFiles, setIdentityService, setInitParameter, setLoginService, setRealmName, setSessionRenewedOnAuthentication
public BasicAuthSecurityHandler setBasicAuth(BasicAuth basicAuth)
basicAuth
- public void handle(String pathInContext, org.eclipse.jetty.server.Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
handle
in class org.eclipse.jetty.security.SecurityHandler
IOException
javax.servlet.ServletException
public BasicAuthSecurityHandler addRetryBasicAuthExcludedPath(String path)
path
- public BasicAuthSecurityHandler setRetryBasicAuth(boolean enabled)
enabled
- public BasicAuthSecurityHandler setSkipBasicAuthCallback(BasicAuthLogicCore.SkipBasicAuthCallback listener)
Copyright © 2018. All rights reserved.