org.glite.voms.ac
Class AttributeHolder

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

public class AttributeHolder
extends java.lang.Object
implements org.bouncycastle.asn1.DEREncodable

This calss represents an Attribute Holder object.


Constructor Summary
AttributeHolder()
          Empty constructor.
AttributeHolder(org.bouncycastle.asn1.ASN1Sequence seq)
          Creates an AttributeHolder object from a Sequence.
 
Method Summary
 java.util.List getAttributes()
          Gets a list of Generic Attributes.
 org.bouncycastle.asn1.DERObject getDERObject()
          Makes a DERObject representation.
 java.lang.String getGrantor()
          Gets the Grantor of these attributes.
static AttributeHolder getInstance(org.bouncycastle.asn1.ASN1Sequence seq)
          Static variant of the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeHolder

public AttributeHolder()
Empty constructor.


AttributeHolder

public AttributeHolder(org.bouncycastle.asn1.ASN1Sequence seq)
Creates an AttributeHolder object from a Sequence.

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

getInstance

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

See Also:
AttributeHolder(ASN1Sequence seq)

getGrantor

public java.lang.String getGrantor()
Gets the Grantor of these attributes.

Returns:
the grantor.

getAttributes

public java.util.List getAttributes()
Gets a list of Generic Attributes.

Returns:
the list or null if none was loaded.

getDERObject

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

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