de.fzj.unicore.uas.security
Class PlainWSAuthZHandler

java.lang.Object
  extended by org.codehaus.xfire.handler.AbstractHandler
      extended by de.fzj.unicore.uas.security.PlainWSAuthZHandler
All Implemented Interfaces:
org.codehaus.xfire.handler.Handler

public class PlainWSAuthZHandler
extends org.codehaus.xfire.handler.AbstractHandler

A handler for authorising access to plain Web services, and WSRF services that are non-UNICORE services (i.e. "plain" WSRFlite services)
This handler relies on security tokens being present in the message context, for example as generated by the AuthInHandler. These SecurityTokens and the Client object will be placed into thread-local storage, so the service can later retrieve them.

Author:
schuller
See Also:
AuthInHandler

Field Summary
 
Fields inherited from interface org.codehaus.xfire.handler.Handler
ROLE
 
Constructor Summary
PlainWSAuthZHandler()
           
 
Method Summary
protected  void checkAccess(org.codehaus.xfire.MessageContext ctx, java.lang.String serviceName, de.fzj.unicore.xnjs.aaa.Client client)
           
 void invoke(org.codehaus.xfire.MessageContext ctx)
          for non-UAS services (i.e. services not extending UASWSResourceImpl), put the security info from the message context into thread-local storage
 
Methods inherited from class org.codehaus.xfire.handler.AbstractHandler
after, before, getAfter, getBefore, getPhase, getRoles, getUnderstoodHeaders, handleFault, setAfter, setBefore, setPhase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainWSAuthZHandler

public PlainWSAuthZHandler()
Method Detail

invoke

public void invoke(org.codehaus.xfire.MessageContext ctx)
            throws java.lang.Exception
for non-UAS services (i.e. services not extending UASWSResourceImpl), put the security info from the message context into thread-local storage

Throws:
java.lang.Exception

checkAccess

protected void checkAccess(org.codehaus.xfire.MessageContext ctx,
                           java.lang.String serviceName,
                           de.fzj.unicore.xnjs.aaa.Client client)


Copyright © 2006-2010 Research Center Juelich. All Rights Reserved.