org.glite.voms.contact

Class VOMSRequestOptions


public class VOMSRequestOptions
extends java.lang.Object

This class represents options that constitute VOMS requests.

Field Summary

static int
DEFAULT_LIFETIME
The default lifetime value for voms requests is 86400 seconds.

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)

Field Details

DEFAULT_LIFETIME

public static final int DEFAULT_LIFETIME
Field Value:
86400

Method Details

addFQAN

public void addFQAN(String FQAN)
Parameters:
FQAN -

addTarget

public void addTarget(String target)
Parameters:
target -

doRequestList

public void doRequestList()

getLifetime

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

getOrdering

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

getRequestedFQANs

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

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.

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.
Parameters:
lifetime -

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 -

setRequestedFQANs

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

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 -

setVerificationType

public void setVerificationType(int verificationType)

setVoName

public void setVoName(String voName)