org.glite.voms.contact
Class VOMSRequestOptions
java.lang.Object
org.glite.voms.contact.VOMSRequestOptions
public class VOMSRequestOptions
extends java.lang.Object
This class represents options that constitute VOMS requests.
static int | DEFAULT_LIFETIME - The default lifetime value for voms requests is 86400 seconds.
|
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.
addFQAN
public void addFQAN(String FQAN)
addTarget
public void addTarget(String target)
Adds a target to the list of targets for this
VOMSRequestOptions
object. See
getTargets()
.
doRequestList
public void doRequestList()
getLifetime
public int getLifetime()
- the lifetime set for this
VOMSRequestOptions
object.
getOrdering
public String getOrdering()
- the ordering string of this
VOMSRequestOptions
object.
getRequestedFQANs
public List getRequestedFQANs()
- the list of the requested FQANs specified in this
VOMSRequestOptions
object.
getTargets
public List getTargets()
- the list of targets (i.e., host where the requested ACs will be valid) for this
VOMSRequestOptions
object.
getTargetsAsString
public String getTargetsAsString()
- 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.
getVerificationType
public int getVerificationType()
getVoName
public String getVoName()
isRequestList
public boolean isRequestList()
setLifetime
public void setLifetime(int lifetime)
Sets the lifetime for 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.
setRequestedFQANs
public void setRequestedFQANs(List requestedFQANs)
Sets the list of requested FQANs for this VOMSRequestOptions
object.
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.
setVerificationType
public void setVerificationType(int verificationType)
setVoName
public void setVoName(String voName)