org.glite.voms.ac
Class ACTargets

java.lang.Object
  extended by org.glite.voms.ac.ACTargets
All Implemented Interfaces:
org.bouncycastle.asn1.DEREncodable

public class ACTargets
extends Object
implements org.bouncycastle.asn1.DEREncodable

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

Author:
Vincenzo Ciaschini

Constructor Summary
ACTargets()
          Empty constructor.
ACTargets(org.bouncycastle.asn1.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.
 org.bouncycastle.asn1.DERObject getDERObject()
          Makes a DERObject representation.
static ACTargets getInstance(org.bouncycastle.asn1.ASN1Sequence seq)
          Static variant of the constructor.
 List getTargets()
          Gets the list of targets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACTargets

public ACTargets()
Empty constructor.


ACTargets

public ACTargets(org.bouncycastle.asn1.ASN1Sequence seq)
Creates an ACTargets from a sequence.

Parameters:
seq - the sequence.
Throws:
IllegalArgumentException - if there are parsing errors.
Method Detail

getInstance

public static ACTargets getInstance(org.bouncycastle.asn1.ASN1Sequence seq)
Static variant of the constructor.

See Also:
ACTargets(ASN1Sequence seq)

addTarget

public void addTarget(String s)
Manually add a target.

Parameters:
s - the target.

AddTarget

public void AddTarget(ACTarget act)
Manually add a target.

Parameters:
act - the target.
See Also:
ACTarget

getTargets

public List getTargets()
Gets the list of targets.

Returns:
a List containing the targets, expressed as String.

getDERObject

public org.bouncycastle.asn1.DERObject getDERObject()
Makes a DERObject representation.

Specified by:
getDERObject in interface org.bouncycastle.asn1.DEREncodable
Returns:
the DERObject


Copyright © 2012. All Rights Reserved.