@ManagedObject(value="SIP security handler") public abstract class SipSecurityHandler<T> extends SipHandlerWrapper implements SipHandler, SipAuthenticator.AuthConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
SipSecurityHandler.IdentityAssertionScheme |
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener_handler| Constructor and Description |
|---|
SipSecurityHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
checkSipResourcePermissions(SipServletHolder holder,
SipRequest request,
T constraintInfo,
org.eclipse.jetty.server.UserIdentity userIdentity) |
protected abstract boolean |
checkUserDataPermissions(SipServletHolder holder,
SipRequest request,
T constraintInfo) |
protected void |
doStart() |
protected void |
doStop() |
protected org.eclipse.jetty.security.IdentityService |
findIdentityService() |
protected org.eclipse.jetty.security.LoginService |
findLoginService() |
SipAuthenticator |
getAuthenticator() |
SipAuthenticator.Factory |
getAuthenticatorFactory() |
java.lang.String |
getAuthMethod() |
SipSecurityHandler.IdentityAssertionScheme |
getIdentityAssertionScheme() |
org.eclipse.jetty.security.IdentityService |
getIdentityService() |
java.lang.String |
getInitParameter(java.lang.String key)
Get a SecurityHandler init parameter
|
java.util.Set<java.lang.String> |
getInitParameterNames()
Get a SecurityHandler init parameter names
|
org.eclipse.jetty.security.LoginService |
getLoginService()
Get the loginService.
|
java.lang.String |
getRealmName() |
void |
handle(SipMessage message) |
protected abstract boolean |
isAuthMandatory(SipRequest baseRequest,
T constraintInfo) |
boolean |
isIdentityAssertionRequired() |
protected abstract boolean |
isProxyMode(SipRequest baseRequest,
T constraintInfo) |
protected abstract T |
prepareConstraintInfo(SipServletHolder holder,
SipRequest request) |
void |
setAuthenticator(SipAuthenticator authenticator)
Set the authenticator.
|
void |
setAuthenticatorFactory(SipAuthenticator.Factory authenticatorFactory) |
void |
setAuthMethod(java.lang.String authMethod) |
void |
setIdentityAssertionRequired(boolean identityAssertionRequired) |
void |
setIdentityAssertionScheme(SipSecurityHandler.IdentityAssertionScheme identityAssertionScheme) |
void |
setIdentityService(org.eclipse.jetty.security.IdentityService identityService)
Set the identityService.
|
java.lang.String |
setInitParameter(java.lang.String key,
java.lang.String value)
Set an initialization parameter.
|
void |
setLoginService(org.eclipse.jetty.security.LoginService loginService)
Set the loginService.
|
void |
setRealmName(java.lang.String realmName) |
destroy, getHandler, setHandler, setServergetServeraddBean, addBean, addBean, addEventListener, contains, dump, 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, setServerprotected void doStart()
throws java.lang.Exception
doStart in class org.eclipse.jetty.util.component.ContainerLifeCyclejava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class org.eclipse.jetty.util.component.ContainerLifeCyclejava.lang.Exception@ManagedAttribute(name="Login service",
readonly=true)
public org.eclipse.jetty.security.LoginService getLoginService()
getLoginService in interface SipAuthenticator.AuthConfigurationpublic void setLoginService(org.eclipse.jetty.security.LoginService loginService)
loginService - the loginService to set@ManagedAttribute(name="Realm name",
readonly=true)
public java.lang.String getRealmName()
getRealmName in interface SipAuthenticator.AuthConfigurationpublic void setRealmName(java.lang.String realmName)
realmName - the realmName to setjava.lang.IllegalStateException - if the SecurityHandler is running@ManagedAttribute(name="Authentication method",
readonly=true)
public java.lang.String getAuthMethod()
getAuthMethod in interface SipAuthenticator.AuthConfigurationpublic void setAuthMethod(java.lang.String authMethod)
authMethod - the authMethod to setjava.lang.IllegalStateException - if the SecurityHandler is runningprotected org.eclipse.jetty.security.LoginService findLoginService()
protected org.eclipse.jetty.security.IdentityService findIdentityService()
protected abstract T prepareConstraintInfo(SipServletHolder holder, SipRequest request)
protected abstract boolean checkUserDataPermissions(SipServletHolder holder, SipRequest request, T constraintInfo) throws java.io.IOException
java.io.IOExceptionprotected abstract boolean isAuthMandatory(SipRequest baseRequest, T constraintInfo)
protected abstract boolean isProxyMode(SipRequest baseRequest, T constraintInfo)
protected abstract boolean checkSipResourcePermissions(SipServletHolder holder, SipRequest request, T constraintInfo, org.eclipse.jetty.server.UserIdentity userIdentity) throws java.io.IOException
java.io.IOExceptionpublic void handle(SipMessage message) throws java.io.IOException, javax.servlet.ServletException
handle in interface SipHandlerhandle in class SipHandlerWrapperjava.io.IOExceptionjavax.servlet.ServletExceptionpublic java.lang.String getInitParameter(java.lang.String key)
SipAuthenticator.AuthConfigurationgetInitParameter in interface SipAuthenticator.AuthConfigurationkey - parameter nameSecurityHandler.getInitParameter(String)public java.util.Set<java.lang.String> getInitParameterNames()
SipAuthenticator.AuthConfigurationgetInitParameterNames in interface SipAuthenticator.AuthConfigurationSecurityHandler.getInitParameterNames()public java.lang.String setInitParameter(java.lang.String key,
java.lang.String value)
key - value - java.lang.IllegalStateException - if the SecurityHandler is runningpublic org.eclipse.jetty.security.IdentityService getIdentityService()
getIdentityService in interface SipAuthenticator.AuthConfigurationpublic void setIdentityService(org.eclipse.jetty.security.IdentityService identityService)
identityService - the identityService to set@ManagedAttribute(value="SIP Authenticator",
readonly=true)
public SipAuthenticator getAuthenticator()
public void setAuthenticator(SipAuthenticator authenticator)
authenticator - java.lang.IllegalStateException - if the SecurityHandler is runningpublic SipAuthenticator.Factory getAuthenticatorFactory()
public void setAuthenticatorFactory(SipAuthenticator.Factory authenticatorFactory)
authenticatorFactory - the authenticatorFactory to setjava.lang.IllegalStateException - if the SecurityHandler is runningpublic SipSecurityHandler.IdentityAssertionScheme getIdentityAssertionScheme()
public void setIdentityAssertionScheme(SipSecurityHandler.IdentityAssertionScheme identityAssertionScheme)
public boolean isIdentityAssertionRequired()
public void setIdentityAssertionRequired(boolean identityAssertionRequired)
Copyright © 2015. All Rights Reserved.