org.glite.voms.contact
Class VOMSRequestOptions

java.lang.Object
  extended by org.glite.voms.contact.VOMSRequestOptions

public class VOMSRequestOptions
extends Object

This class represents options that constitute VOMS requests.

Author:
Andrea Ceccanti

Field Summary
static int DEFAULT_LIFETIME
          The default lifetime value for voms requests is 86400 seconds.
 
Constructor Summary
VOMSRequestOptions()
           
 
Method Summary
 void addFQAN(String FQAN)
          Adds a FQAN to the list of requested FQANs.
 void addTarget(String target)
          Adds a target to the list of targets for this VOMSRequestOptions object.
 void doRequestList()
           
 int getLifetime()
           
 String getOrdering()
           
 List getRequestedFQANs()
           
 List getTargets()
           
 String getTargetsAsString()
           
 int getVerificationType()
           
 String getVoName()
           
 boolean isRequestList()
           
 void setLifetime(int lifetime)
          Sets the lifetime for this VOMSRequestOptions object.
 void setOrdering(String ordering)
          Sets the ordering string of this VOMSRequestOptions object.
 void setRequestedFQANs(List requestedFQANs)
          Sets the list of requested FQANs for this VOMSRequestOptions object.
 void setTargets(List targets)
          Sets the list of targets (i.e., host where the requested ACs will be valid) for this VOMSRequestOptions object.
 void setVerificationType(int verificationType)
           
 void setVoName(String voName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LIFETIME

public static final int DEFAULT_LIFETIME
The default lifetime value for voms requests is 86400 seconds. This default value is used if no lifetime is used with the setLifetime(int) method.

See Also:
Constant Field Values
Constructor Detail

VOMSRequestOptions

public VOMSRequestOptions()
Method Detail

getLifetime

public int getLifetime()
Returns:
the lifetime set for this VOMSRequestOptions object.

setLifetime

public void setLifetime(int lifetime)
Sets the lifetime for this VOMSRequestOptions object.

Parameters:
lifetime -

getOrdering

public String getOrdering()
Returns:
the ordering string of this VOMSRequestOptions object.

setOrdering

public void setOrdering(String ordering)
Sets the ordering string of this VOMSRequestOptions object. The ordering string is used to request a spefic order for the ACs requested from the VOMS server.

Parameters:
ordering -

getRequestedFQANs

public List getRequestedFQANs()
Returns:
the list of the requested FQANs specified in this VOMSRequestOptions object.

setRequestedFQANs

public void setRequestedFQANs(List requestedFQANs)
Sets the list of requested FQANs for this VOMSRequestOptions object.

Parameters:
requestedFQANs -

getTargets

public List getTargets()
Returns:
the list of targets (i.e., host where the requested ACs will be valid) for this VOMSRequestOptions object.

getTargetsAsString

public String getTargetsAsString()
Returns:
the list of targets (i.e., host where the requested ACs will be valid) for this VOMSRequestOptions object as a string containing a a comma-separated list of host names.

setTargets

public void setTargets(List targets)
Sets the list of targets (i.e., host where the requested ACs will be valid) for this VOMSRequestOptions object.

Parameters:
targets -

getVerificationType

public int getVerificationType()

setVerificationType

public void setVerificationType(int verificationType)

getVoName

public String getVoName()

setVoName

public void setVoName(String voName)

addFQAN

public void addFQAN(String FQAN)
Adds a FQAN to the list of requested FQANs. See getRequestedFQANs().

Parameters:
FQAN -

addTarget

public void addTarget(String target)
Adds a target to the list of targets for this VOMSRequestOptions object. See getTargets().

Parameters:
target -

doRequestList

public void doRequestList()

isRequestList

public boolean isRequestList()


Copyright © 2013. All Rights Reserved.