org.glite.voms.ac
Class ACTarget

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

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

The intent of this class is to represent a single target.

Author:
Vincenzo Ciaschini

Constructor Summary
ACTarget()
          empty contructor
ACTarget(org.bouncycastle.asn1.ASN1Sequence seq)
          Creates an ACTarget from a sequence
 
Method Summary
 org.bouncycastle.asn1.DERObject getDERObject()
          Makes a DERObject representation.
 String getGroup()
          Gets the group element
static ACTarget getInstance(org.bouncycastle.asn1.ASN1Sequence seq)
          Static variant of the constructor.
 org.bouncycastle.asn1.x509.IssuerSerial getIssuerSerial()
          Gets the IssuerSerial
 String getIssuerSerialString()
          Gets the IssuerSerial element
 String getName()
          Gets the name element.
 void setGroup(org.bouncycastle.asn1.x509.GeneralName g)
          Sets the group.
 void setGroup(String s)
          Sets the group
 void setIssuerSerial(org.bouncycastle.asn1.x509.IssuerSerial is)
          Sets the IssuerSerial
 void setIssuerSerial(String s)
          Sets the IssuerSerial
 void setName(org.bouncycastle.asn1.x509.GeneralName n)
          Sets the name
 void setName(String s)
          Sets the name
 String toString()
          Creates a string representation of the target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ACTarget

public ACTarget()
empty contructor


ACTarget

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

Parameters:
seq - the Sequence
Throws:
IllegalArgumentException - if there are parsing problems.
Method Detail

toString

public String toString()
Creates a string representation of the target.

Overrides:
toString in class Object
Returns:
the string, or null if there were problems.

getName

public String getName()
Gets the name element.

Returns:
the name.

getGroup

public String getGroup()
Gets the group element

Returns:
the group.

getIssuerSerial

public org.bouncycastle.asn1.x509.IssuerSerial getIssuerSerial()
Gets the IssuerSerial

Returns:
the IssuerSerial

getIssuerSerialString

public String getIssuerSerialString()
Gets the IssuerSerial element

Returns:
the IssuerSerial as String.

setName

public void setName(org.bouncycastle.asn1.x509.GeneralName n)
Sets the name

Parameters:
n - the name

setName

public void setName(String s)
Sets the name

Parameters:
s - the name.

setGroup

public void setGroup(org.bouncycastle.asn1.x509.GeneralName g)
Sets the group.

Parameters:
g - the group

setGroup

public void setGroup(String s)
Sets the group

Parameters:
s - the group name.

setIssuerSerial

public void setIssuerSerial(org.bouncycastle.asn1.x509.IssuerSerial is)
Sets the IssuerSerial

Parameters:
is - the IssuerSerial

setIssuerSerial

public void setIssuerSerial(String s)
Sets the IssuerSerial

Parameters:
s - a textual representation of the IssuerSerial, in the from subject:serial

getInstance

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

See Also:
ACTarget(ASN1Sequence seq)

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.