org.glite.voms.ac

Class ACTargets

Implemented Interfaces:
DEREncodable

public class ACTargets
extends java.lang.Object
implements DEREncodable

The intent of this class is to represent the ACTargets extension which may be present in the AC.

Constructor Summary

ACTargets()
Empty constructor.
ACTargets(ASN1Sequence seq)
Creates an ACTargets from a sequence.

Method Summary

void
AddTarget(ACTarget act)
Manually add a target.
void
addTarget(String s)
Manually add a target.
DERObject
getDERObject()
Makes a DERObject representation.
static ACTargets
getInstance(ASN1Sequence seq)
Static variant of the constructor.
List
getTargets()
Gets the list of targets.

Constructor Details

ACTargets

public ACTargets()
Empty constructor.

ACTargets

public ACTargets(ASN1Sequence seq)
Creates an ACTargets from a sequence.
Parameters:
seq - the sequence.

Method Details

AddTarget

public void AddTarget(ACTarget act)
Manually add a target.
Parameters:
act - the target.
See Also:
org.glite.voms.ac.ACTarget

addTarget

public void addTarget(String s)
Manually add a target.
Parameters:
s - the target.

getDERObject

public DERObject getDERObject()
Makes a DERObject representation.
Returns:
the DERObject

getInstance

public static ACTargets getInstance(ASN1Sequence seq)
Static variant of the constructor.
See Also:
ACTargets(ASN1Sequence seq)

getTargets

public List getTargets()
Gets the list of targets.
Returns:
a List containing the targets, expressed as String.