public class VOMSAttributesImpl extends Object implements VOMSAttribute
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CLOCK_SKEW_IN_MINUTES |
| Constructor and Description |
|---|
VOMSAttributesImpl() |
| Modifier and Type | Method and Description |
|---|---|
X509Certificate[] |
getAACertificates()
This method returns the certificate chain of the VOMS Attribute Authority
(AA) that signed this
VOMSAttribute. |
List<String> |
getFQANs()
This method returns the list of signed Fully Qualified Attribute Names
(FQANs) in this
VOMSAttribute. |
List<VOMSGenericAttribute> |
getGenericAttributes()
This method returns the list of VOMS Generic attributes in this
VOMSAttribute. |
X500Principal |
getHolder()
This method returns the subject (as an
X500Principal) of the holder
of these VOMS attributes |
BigInteger |
getHolderSerialNumber()
This method returns the holder certificate serial number
|
String |
getHost()
This method returns the host where the VOMS Attribute Authority (AA) that
signed these attribute lives
|
X500Principal |
getIssuer()
This method returns the subject of the VOMS Attribute Authority that signed
these attributes.
|
Date |
getNotAfter()
This method returns the attributes' validity end time
|
Date |
getNotBefore()
This method returns the attributes' validity start time
|
int |
getPort()
This method returns the port on which the VOMS Attribute Authority (AA)
that signed these attributes listens for requests.
|
String |
getPrimaryFQAN()
This method returns the primary FQAN (the first in the list returned by
VOMSAttribute.getFQANs()) in this VOMSAttribute. |
byte[] |
getSignature()
This method returns the signature on the VOMS attribute certificate as a
byte array.
|
List<String> |
getTargets()
This method returns the list of targets defined for this
VOMSAttribute. |
String |
getVO()
This method returns the name of the VO this VOMS attributes are about
|
org.bouncycastle.cert.X509AttributeCertificateHolder |
getVOMSAC()
This method returns the underlying VOMS Attribute certificate object.
|
boolean |
isValid()
This method checks whether the attributes are valid in the current instant
of time.
|
void |
setAACertificates(X509Certificate[] aaCerts) |
void |
setFQANs(List<String> fQANs) |
void |
setGenericAttributes(List<VOMSGenericAttribute> genericAttributes) |
void |
setHolder(X500Principal holder) |
void |
setHolderSerialNumber(BigInteger holderSerialNumber) |
void |
setHost(String host) |
void |
setIssuer(X500Principal issuer) |
void |
setNotAfter(Date notAfter) |
void |
setNotBefore(Date notBefore) |
void |
setPort(int port) |
void |
setSignature(byte[] signature) |
void |
setTargets(List<String> targets) |
void |
setVO(String vO) |
void |
setVOMSAC(org.bouncycastle.cert.X509AttributeCertificateHolder ac) |
String |
toString() |
boolean |
validAt(Date date)
This method checks whether the attributes are valid in a given time passed
as argument.
|
public static final int DEFAULT_CLOCK_SKEW_IN_MINUTES
public X500Principal getIssuer()
VOMSAttributegetIssuer in interface VOMSAttributepublic String getPrimaryFQAN()
VOMSAttributeVOMSAttribute.getFQANs()) in this VOMSAttribute.getPrimaryFQAN in interface VOMSAttributepublic String getVO()
VOMSAttributegetVO in interface VOMSAttributepublic void setIssuer(X500Principal issuer)
public void setVO(String vO)
public List<String> getFQANs()
VOMSAttributeVOMSAttribute.getFQANs in interface VOMSAttributeList of VOMS fully qualified attribute namespublic String getHost()
VOMSAttributegetHost in interface VOMSAttributepublic int getPort()
VOMSAttributegetPort in interface VOMSAttributepublic X500Principal getHolder()
VOMSAttributeX500Principal) of the holder
of these VOMS attributesgetHolder in interface VOMSAttributepublic Date getNotBefore()
VOMSAttributegetNotBefore in interface VOMSAttributepublic Date getNotAfter()
VOMSAttributegetNotAfter in interface VOMSAttributepublic byte[] getSignature()
VOMSAttributegetSignature in interface VOMSAttributepublic void setHost(String host)
public void setPort(int port)
public void setHolder(X500Principal holder)
public void setNotAfter(Date notAfter)
public void setNotBefore(Date notBefore)
public void setSignature(byte[] signature)
public List<VOMSGenericAttribute> getGenericAttributes()
VOMSAttributeVOMSAttribute.getGenericAttributes in interface VOMSAttributepublic void setGenericAttributes(List<VOMSGenericAttribute> genericAttributes)
public List<String> getTargets()
VOMSAttributeVOMSAttribute.getTargets in interface VOMSAttributepublic X509Certificate[] getAACertificates()
VOMSAttributeVOMSAttribute.getAACertificates in interface VOMSAttributepublic void setAACertificates(X509Certificate[] aaCerts)
public boolean isValid()
VOMSAttributeisValid in interface VOMSAttributetrue if valid, false otherwisepublic boolean validAt(Date date)
VOMSAttributevalidAt in interface VOMSAttributedate - the time used for the validity checktrue if valid, false otherwisepublic org.bouncycastle.cert.X509AttributeCertificateHolder getVOMSAC()
VOMSAttributegetVOMSAC in interface VOMSAttributepublic void setVOMSAC(org.bouncycastle.cert.X509AttributeCertificateHolder ac)
public BigInteger getHolderSerialNumber()
VOMSAttributegetHolderSerialNumber in interface VOMSAttributepublic void setHolderSerialNumber(BigInteger holderSerialNumber)
Copyright © 2018. All rights reserved.