public class ConstraintSecurityHandler extends SipSecurityHandler<RoleInfo>
SipSecurityHandler.IdentityAssertionSchemeorg.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener_handler| Constructor and Description |
|---|
ConstraintSecurityHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConstraintMapping(ConstraintMapping mapping) |
void |
addRole(java.lang.String role) |
protected boolean |
checkSipResourcePermissions(SipServletHolder holder,
SipRequest request,
RoleInfo constraintInfo,
org.eclipse.jetty.server.UserIdentity userIdentity) |
protected boolean |
checkUserDataPermissions(SipServletHolder holder,
SipRequest request,
RoleInfo constraintInfo) |
protected void |
doStart() |
protected void |
doStop() |
void |
dump(java.lang.Appendable out,
java.lang.String indent) |
java.util.List<ConstraintMapping> |
getConstraintMappings() |
java.util.Set<java.lang.String> |
getRoles() |
protected boolean |
isAuthMandatory(SipRequest baseRequest,
RoleInfo constraintInfo) |
protected boolean |
isProxyMode(SipRequest baseRequest,
RoleInfo constraintInfo) |
boolean |
isStrict()
Get the strict mode.
|
protected RoleInfo |
prepareConstraintInfo(SipServletHolder holder,
SipRequest request) |
protected void |
processConstraintMapping(ConstraintMapping mapping) |
void |
setConstraintMappings(java.util.List<ConstraintMapping> constraintMappings)
Process the constraints following the combining rules in Servlet 3.0 EA
spec section 13.7.1 Note that much of the logic is in the RoleInfo class.
|
void |
setConstraintMappings(java.util.List<ConstraintMapping> constraintMappings,
java.util.Set<java.lang.String> roles)
Process the constraints following the combining rules in Servlet 3.0 EA
spec section 13.7.1 Note that much of the logic is in the RoleInfo class.
|
void |
setRoles(java.util.Set<java.lang.String> roles)
Set the known roles.
|
void |
setStrict(boolean strict)
Set the strict mode of the security handler.
|
findIdentityService, findLoginService, getAuthenticator, getAuthenticatorFactory, getAuthMethod, getIdentityAssertionScheme, getIdentityService, getInitParameter, getInitParameterNames, getLoginService, getRealmName, handle, isIdentityAssertionRequired, setAuthenticator, setAuthenticatorFactory, setAuthMethod, setIdentityAssertionRequired, setIdentityAssertionScheme, setIdentityService, setInitParameter, setLoginService, setRealmNamedestroy, getHandler, setHandler, setServergetServeraddBean, addBean, addBean, addEventListener, contains, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServer, setServerpublic boolean isStrict()
public void setStrict(boolean strict)
When in strict mode (the default), the full servlet specification will be implemented. If not in strict mode, some additional flexibility in configuration is allowed:
strict - the strict to setsetRoles(Set),
setConstraintMappings(List, Set)public java.util.List<ConstraintMapping> getConstraintMappings()
public java.util.Set<java.lang.String> getRoles()
public void setConstraintMappings(java.util.List<ConstraintMapping> constraintMappings)
constraintMappings - The constraintMappings to set, from which the set of known roles
is determined.public void setConstraintMappings(java.util.List<ConstraintMapping> constraintMappings, java.util.Set<java.lang.String> roles)
constraintMappings - The constraintMappings to set.roles - The known roles (or null to determine them from the mappings)public void setRoles(java.util.Set<java.lang.String> roles)
#setConstraintMappings(ConstraintMapping[]) or
setConstraintMappings(List, Set).roles - The known roles (or null to determine them from the mappings)setStrict(boolean)public void addConstraintMapping(ConstraintMapping mapping)
ConstraintAware.addConstraintMapping(org.eclipse.jetty.security.ConstraintMapping)public void addRole(java.lang.String role)
ConstraintAware.addRole(java.lang.String)protected void doStart()
throws java.lang.Exception
doStart in class SipSecurityHandler<RoleInfo>java.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class SipSecurityHandler<RoleInfo>java.lang.Exceptionprotected RoleInfo prepareConstraintInfo(SipServletHolder holder, SipRequest request)
prepareConstraintInfo in class SipSecurityHandler<RoleInfo>protected boolean checkUserDataPermissions(SipServletHolder holder, SipRequest request, RoleInfo constraintInfo) throws java.io.IOException
checkUserDataPermissions in class SipSecurityHandler<RoleInfo>java.io.IOExceptionprotected boolean isAuthMandatory(SipRequest baseRequest, RoleInfo constraintInfo)
isAuthMandatory in class SipSecurityHandler<RoleInfo>protected boolean checkSipResourcePermissions(SipServletHolder holder, SipRequest request, RoleInfo constraintInfo, org.eclipse.jetty.server.UserIdentity userIdentity) throws java.io.IOException
checkSipResourcePermissions in class SipSecurityHandler<RoleInfo>java.io.IOExceptionprotected boolean isProxyMode(SipRequest baseRequest, RoleInfo constraintInfo)
isProxyMode in class SipSecurityHandler<RoleInfo>protected void processConstraintMapping(ConstraintMapping mapping)
public void dump(java.lang.Appendable out,
java.lang.String indent)
throws java.io.IOException
dump in interface org.eclipse.jetty.util.component.Dumpabledump in class org.eclipse.jetty.util.component.ContainerLifeCyclejava.io.IOExceptionCopyright © 2015. All Rights Reserved.