Constructor and Description |
---|
WSServer() |
Modifier and Type | Method and Description |
---|---|
static IWSServerAuthInterceptor |
attachDefaultAuthInterceptor(electric.util.Context context)
This allows you to attach a default implementation of
IWSServerAuthInterceptor
to the Service Context. |
static IWSServerAuthInterceptor |
attachDefaultAuthInterceptor(electric.util.Context context,
electric.servlet.HTTPContext httpContext)
This allows you to attach a default implementation of
IWSServerAuthInterceptor
to the Service Context. |
static void |
attachToContext(IWSServerAuthInterceptor interceptor,
electric.util.Context context,
electric.servlet.HTTPContext httpContext)
Conventience static method to register the interceptor with a context.
|
static void |
setAllowBasic(electric.util.Context context,
boolean flag)
Modify whether or not the
IWSServerAuthInterceptor allows basic auth
Only works if the |
public static IWSServerAuthInterceptor attachDefaultAuthInterceptor(electric.util.Context context)
IWSServerAuthInterceptor
to the Service Context.
You can then use the IWSServerAuthInterceptor.getAuthenticatedUserDN()
to obtain
the dn of the authenticated user who is invoking your service
This will use the WSClient to manage the security provider endpoint.
If the httpContext is not null, it will also incorporate Basic Authpublic static IWSServerAuthInterceptor attachDefaultAuthInterceptor(electric.util.Context context, electric.servlet.HTTPContext httpContext)
IWSServerAuthInterceptor
to the Service Context.
You can then use the IWSServerAuthInterceptor.getAuthenticatedUserDN()
to obtain
the dn of the authenticated user who is invoking your service
This will use the WSClient to manage the security provider endpoint.
If the httpContext is not null, it will also incorporate Basic Authpublic static void attachToContext(IWSServerAuthInterceptor interceptor, electric.util.Context context, electric.servlet.HTTPContext httpContext)
context
- ServiceContext
object. If null, the ApplicationContext is used.public static void setAllowBasic(electric.util.Context context, boolean flag)
IWSServerAuthInterceptor
allows basic auth
Only works if the ISOAPInterceptor
is an instance of
context
- ServiceContext
object. Could be null. If null,
the ApplicationContext is used.flag
- boolean set to true if SAML artifact verification
is enforced always, false otherwise.