org.glite.voms.ac
Class GenericAttribute

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

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

This class represents the single Generic Attribute.

Author:
Vincenzo Ciaschini

Constructor Summary
GenericAttribute()
          Empty contructor
GenericAttribute(org.bouncycastle.asn1.ASN1Sequence seq)
          Creates a GenericAttributes object from a sequence.
 
Method Summary
 org.bouncycastle.asn1.DERObject getDERObject()
          Makes a DERObject representation.
static GenericAttribute getInstance(org.bouncycastle.asn1.ASN1Sequence seq)
          Static variant of the constructor.
 String getName()
          Gets the name of the attribute
 String getQualifier()
          Gets the qualifier of the attribute
 String getValue()
          Gets the value of the attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericAttribute

public GenericAttribute()
Empty contructor


GenericAttribute

public GenericAttribute(org.bouncycastle.asn1.ASN1Sequence seq)
Creates a GenericAttributes object from a sequence.

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

getInstance

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

See Also:
GenericAttribute(ASN1Sequence seq)

getName

public String getName()
Gets the name of the attribute

Returns:
the name

getValue

public String getValue()
Gets the value of the attribute

Returns:
the value

getQualifier

public String getQualifier()
Gets the qualifier of the attribute

Returns:
the qualifier

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.