org.glite.security.voms
Class VOMSAttribute

java.lang.Object
  extended by org.glite.security.voms.VOMSAttribute

public class VOMSAttribute
extends java.lang.Object

Representation of the authorization information (VO, server address and list of Fully Qualified Attribute Names, or FQANs) contained in a VOMS attribute certificate.

Author:
Olle Mulmo

Field Summary
static java.lang.String VOMS_ATTR_OID
          The ASN.1 object identifier for VOMS attributes
 
Constructor Summary
VOMSAttribute(AttributeCertificate ac)
          Parses the contents of an attribute certificate.
NOTE: Cryptographic signatures, time stamps etc.
 
Method Summary
 AttributeCertificate getAC()
           
 java.util.List getFullyQualifiedAttributes()
           
 java.lang.String getHostPort()
          Returns the address of the issuing VOMS server, on the form <host>:<port>
 java.util.List getListOfFQAN()
           
 java.lang.String getVO()
          Returns the VO name
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VOMS_ATTR_OID

public static final java.lang.String VOMS_ATTR_OID
The ASN.1 object identifier for VOMS attributes

See Also:
Constant Field Values
Constructor Detail

VOMSAttribute

public VOMSAttribute(AttributeCertificate ac)
Parses the contents of an attribute certificate.
NOTE: Cryptographic signatures, time stamps etc. will not be checked.

Parameters:
ac - the attribute certificate to parse for VOMS attributes
Method Detail

getAC

public AttributeCertificate getAC()
Returns:
The AttributeCertificate containing the VOMS information

getFullyQualifiedAttributes

public java.util.List getFullyQualifiedAttributes()
Returns:
List of String of the VOMS fully qualified attributes names (FQANs):
vo[/group[/group2...]][/Role=[role]][/Capability=capability]

getListOfFQAN

public java.util.List getListOfFQAN()
Returns:
List of FQAN of the VOMS fully qualified attributes names (FQANs)
See Also:
#FQAN

getHostPort

public java.lang.String getHostPort()
Returns the address of the issuing VOMS server, on the form <host>:<port>

Returns:
String

getVO

public java.lang.String getVO()
Returns the VO name

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object