org.glite.security.delegation.impl
Class GliteDelegation

java.lang.Object
  extended by org.glite.security.delegation.impl.GliteDelegation

public class GliteDelegation
extends java.lang.Object

Implementation of the logic of the Glite Delegation Interface on the server side.

Author:
Ricardo Rocha , Akos Frohner , Joni Hahkala

Constructor Summary
GliteDelegation()
          Loads the DLGEE properties from the default config file and calls the appropriate constructor.
GliteDelegation(GrDProxyDlgeeOptions dlgeeOpt)
          Class constructor.
 
Method Summary
 void destroy(java.lang.String inDelegationID)
           
 NewProxyReq getNewProxyReq(java.lang.String inDelegationID)
          Generates a new proxy request object based on the DN and voms attributes in the security context.
 java.lang.String getProxyReq(java.lang.String inDelegationID)
          Generates a new proxy certificate proxy request based on the client DN and voms attributes in SecurityContext.
 java.util.Calendar getTerminationTime(java.lang.String inDelegationID)
           
 void putProxy(java.lang.String inDelegationID, java.lang.String proxy)
           
 java.lang.String renewProxyReq(java.lang.String inDelegationID)
          Generates a new delegation request for the existing delegation with the given (or generated) delegation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GliteDelegation

public GliteDelegation()
                throws java.io.IOException
Loads the DLGEE properties from the default config file and calls the appropriate constructor.

Throws:
java.io.IOException - Failed to load the DLGEE config file
See Also:
GliteDelegation(GrDProxyDlgeeOptions)

GliteDelegation

public GliteDelegation(GrDProxyDlgeeOptions dlgeeOpt)
Class constructor. Creates a new storage handler instance (implementation depending on configuration) to be used later. Sets the value of the key size as defined in the configuration.

Parameters:
dlgeeOpt - the options object for configuring the delegation receiver.
Method Detail

getProxyReq

public java.lang.String getProxyReq(java.lang.String inDelegationID)
                             throws DelegationException
Generates a new proxy certificate proxy request based on the client DN and voms attributes in SecurityContext. Also checks if the request with given (or generated if not given) id already exists.

Parameters:
inDelegationID - The delegation id used.
Returns:
The generated Proxy request in PEM encoding.
Throws:
DelegationException - Thrown in case of failures.

getNewProxyReq

public NewProxyReq getNewProxyReq(java.lang.String inDelegationID)
                           throws DelegationException
Generates a new proxy request object based on the DN and voms attributes in the security context. Also checks if the request with given (or generated if not given) id already exists.

Parameters:
inDelegationID - the delegation id to use, will be generated if not given.
Returns:
The newProxyReq object.
Throws:
DelegationException - thrown in case of failure.

renewProxyReq

public java.lang.String renewProxyReq(java.lang.String inDelegationID)
                               throws DelegationException
Generates a new delegation request for the existing delegation with the given (or generated) delegation.

Parameters:
inDelegationID - The delegation id to use, will be genarated if not given.
Returns:
The delegation request in PEM format.
Throws:
DelegationException - Thrown in case of failure.

putProxy

public void putProxy(java.lang.String inDelegationID,
                     java.lang.String proxy)
              throws DelegationException
Parameters:
inDelegationID -
proxy -
Throws:
DelegationException

destroy

public void destroy(java.lang.String inDelegationID)
             throws DelegationException
Throws:
DelegationException

getTerminationTime

public java.util.Calendar getTerminationTime(java.lang.String inDelegationID)
                                      throws DelegationException
Throws:
DelegationException


Copyright © 2004-2008. EU-EGEE