|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objecttoolbox.services.ws.SimpleWSS4JServerCallbackLDAPImpl
public class SimpleWSS4JServerCallbackLDAPImpl
Simple WSS4J server side CallbackHandler implementation to handle a UsernameToken header.
This implementqtion makes use of an LDAP directory to perform authentication. The implementation is also capable of performing a simple authorisation based on group membership.
| Constructor Summary | |
|---|---|
SimpleWSS4JServerCallbackLDAPImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
handle(javax.security.auth.callback.Callback[] callbacks)
This method expects a single WSPasswordCallback. |
void |
setGroupNames(java.lang.String groupNames)
Set a CSV string containing the list of valid group names that are authorised to execute the protected service. |
void |
setRegistryName(java.lang.String registryName)
Set the name of the Toolbox ServiceRegistry instance to use. |
void |
setServiceName(java.lang.String serviceName)
Set the name of the service instance to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleWSS4JServerCallbackLDAPImpl()
| Method Detail |
|---|
public void setRegistryName(java.lang.String registryName)
registryName - String containing the name of the ServiceRegistry
instance to use.public void setServiceName(java.lang.String serviceName)
toolbox.services.ldap.simple.SimpleUserService interface.
serviceName - String containing the name of the service instance
to use.public void setGroupNames(java.lang.String groupNames)
groupNames - CSV string containing the list of valid group names.
This is an optional property.
public void handle(javax.security.auth.callback.Callback[] callbacks)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
WSPasswordCallback. The method
then proceeds to attempt a simple LDAP bind with the provided identifier
and password. If the groupNames property is not null a
further check is performed to check the identifiers group membership.
handle in interface javax.security.auth.callback.CallbackHandlercallbacks - Array of Callback instances. This implemenation only
expects a single WSPasswordCallback
instance.
java.io.IOException
javax.security.auth.callback.UnsupportedCallbackException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||