org.italiangrid.voms
Interface VOMSAttribute

All Known Implementing Classes:
VOMSAttributesImpl

public interface VOMSAttribute

The VOMS attributes information. This interface provides access to all the information available in a VOMS attribute certificate.

Author:
Andrea Ceccanti

Method Summary
 X509Certificate[] getAACertificates()
           
 List<String> getFQANs()
           
 List<VOMSGenericAttribute> getGenericAttributes()
           
 X500Principal getHolder()
           
 BigInteger getHolderSerialNumber()
           
 String getHost()
           
 X500Principal getIssuer()
           
 Date getNotAfter()
           
 Date getNotBefore()
           
 int getPort()
           
 String getPrimaryFQAN()
           
 byte[] getSignature()
           
 List<String> getTargets()
           
 String getVO()
           
 org.bouncycastle.cert.X509AttributeCertificateHolder getVOMSAC()
           
 boolean isValid()
          This method checks whether the attributes are valid in the current instant of time.
 boolean validAt(Date time)
          This method checks whether the attributes are valid in a given time passed as argument.
 

Method Detail

getVO

String getVO()
Returns:
The name of the VO this VOMS attributes are about

getHost

String getHost()
Returns:
The name of the host where the VOMS AA that signed these attributes lives

getPort

int getPort()
Returns:
The port on which the VOMS AA that signed these attributes listens for requests

getHolder

X500Principal getHolder()
Returns:
The subject of the holder of these VOMS attributes

getHolderSerialNumber

BigInteger getHolderSerialNumber()
Returns:
The serial number of the holder certificate

getIssuer

X500Principal getIssuer()
Returns:
The subject of the VOMS AA that signed these attributes

getNotBefore

Date getNotBefore()
Returns:
The attributes' validity start time

getNotAfter

Date getNotAfter()
Returns:
The attributes' validity end time

getFQANs

List<String> getFQANs()
Returns:
The List of VOMS fully qualified attribute names

getPrimaryFQAN

String getPrimaryFQAN()
Returns:
The primary VOMS fully qualified attribute name

getSignature

byte[] getSignature()
Returns:
The signature of this VOMS attributes

getGenericAttributes

List<VOMSGenericAttribute> getGenericAttributes()
Returns:
The VOMS generic attributes

getTargets

List<String> getTargets()
Returns:
The targets for this VOMS attributes

getAACertificates

X509Certificate[] getAACertificates()
Returns:
The VOMS AA certificate chain

isValid

boolean isValid()
This method checks whether the attributes are valid in the current instant of time. No validation is performed on the attributes.

Returns:
true if valid, false otherwise

validAt

boolean validAt(Date time)
This method checks whether the attributes are valid in a given time passed as argument. No validation is performed on the attributes.

Parameters:
time -
Returns:
true if valid, false otherwise

getVOMSAC

org.bouncycastle.cert.X509AttributeCertificateHolder getVOMSAC()
Returns:
the underlying bouncycastle object for the VOMS attribute certificate.


Copyright © 2013. All Rights Reserved.