de.fzj.unicore.uas.security
Class ProxyCertOutHandler

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

public class ProxyCertOutHandler
extends org.codehaus.xfire.handler.AbstractHandler
implements SecurityOutHandler

If needed then a token with a proxy cert in PEM format is inserted into the header.
The properties of the issued proxy can be configured in the security properties passed to the doInit() method
This handler is intended for client use

Author:
schuller

Field Summary
static java.lang.String BEGIN_CERT
           
static java.lang.String BEGIN_PRIVATE
           
static java.lang.String END_CERT
           
static java.lang.String END_PRIVATE
           
static java.lang.String PROXY_KEYSIZE
          property for defining the keysize (default: 1024)
static java.lang.String PROXY_LIFETIME
          property for defining the lifetime in seconds (default: 2*3600, i.e. two hours)
protected  IUASSecurityProperties sec
           
 
Fields inherited from interface org.codehaus.xfire.handler.Handler
ROLE
 
Constructor Summary
ProxyCertOutHandler()
           
 
Method Summary
 void doInit(IUASSecurityProperties sec)
           
 org.jdom.Element getProxyHeader()
           
 void invoke(org.codehaus.xfire.MessageContext context)
           
 
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
 

Field Detail

BEGIN_CERT

public static final java.lang.String BEGIN_CERT
See Also:
Constant Field Values

END_CERT

public static final java.lang.String END_CERT
See Also:
Constant Field Values

BEGIN_PRIVATE

public static final java.lang.String BEGIN_PRIVATE
See Also:
Constant Field Values

END_PRIVATE

public static final java.lang.String END_PRIVATE
See Also:
Constant Field Values

sec

protected IUASSecurityProperties sec

PROXY_LIFETIME

public static final java.lang.String PROXY_LIFETIME
property for defining the lifetime in seconds (default: 2*3600, i.e. two hours)

See Also:
Constant Field Values

PROXY_KEYSIZE

public static final java.lang.String PROXY_KEYSIZE
property for defining the keysize (default: 1024)

See Also:
Constant Field Values
Constructor Detail

ProxyCertOutHandler

public ProxyCertOutHandler()
Method Detail

doInit

public void doInit(IUASSecurityProperties sec)
Specified by:
doInit in interface SecurityOutHandler

getProxyHeader

public org.jdom.Element getProxyHeader()

invoke

public void invoke(org.codehaus.xfire.MessageContext context)
            throws java.lang.Exception
Specified by:
invoke in interface org.codehaus.xfire.handler.Handler
Throws:
java.lang.Exception


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