public class VOMSAttributesImpl extends java.lang.Object implements VOMSAttribute
| Modifier and Type | Field and Description |
|---|---|
private java.security.cert.X509Certificate[] |
aaCerts |
private java.util.List<java.lang.String> |
acTargets |
static int |
DEFAULT_CLOCK_SKEW_IN_MINUTES |
private java.util.List<java.lang.String> |
FQANs |
private java.util.List<VOMSGenericAttribute> |
genericAttributes |
private javax.security.auth.x500.X500Principal |
holder |
private java.math.BigInteger |
holderSerialNumber |
private java.lang.String |
host |
private javax.security.auth.x500.X500Principal |
issuer |
private java.util.Date |
notAfter |
private java.util.Date |
notBefore |
private int |
port |
private byte[] |
signature |
private java.lang.String |
VO |
private org.bouncycastle.cert.X509AttributeCertificateHolder |
VOMSAC |
| Constructor and Description |
|---|
VOMSAttributesImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.security.cert.X509Certificate[] |
getAACertificates()
This method returns the certificate chain of the VOMS Attribute Authority
(AA) that signed this
VOMSAttribute. |
java.util.List<java.lang.String> |
getFQANs()
This method returns the list of signed Fully Qualified Attribute Names
(FQANs) in this
VOMSAttribute. |
java.util.List<VOMSGenericAttribute> |
getGenericAttributes()
This method returns the list of VOMS Generic attributes in this
VOMSAttribute. |
javax.security.auth.x500.X500Principal |
getHolder()
This method returns the subject (as an
X500Principal) of the holder
of these VOMS attributes |
java.math.BigInteger |
getHolderSerialNumber()
This method returns the holder certificate serial number
|
java.lang.String |
getHost()
This method returns the host where the VOMS Attribute Authority (AA) that
signed these attribute lives
|
javax.security.auth.x500.X500Principal |
getIssuer()
This method returns the subject of the VOMS Attribute Authority that signed
these attributes.
|
java.util.Date |
getNotAfter()
This method returns the attributes' validity end time
|
java.util.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.
|
java.lang.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.
|
java.util.List<java.lang.String> |
getTargets()
This method returns the list of targets defined for this
VOMSAttribute. |
java.lang.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(java.security.cert.X509Certificate[] aaCerts) |
void |
setFQANs(java.util.List<java.lang.String> fQANs) |
void |
setGenericAttributes(java.util.List<VOMSGenericAttribute> genericAttributes) |
void |
setHolder(javax.security.auth.x500.X500Principal holder) |
void |
setHolderSerialNumber(java.math.BigInteger holderSerialNumber) |
void |
setHost(java.lang.String host) |
void |
setIssuer(javax.security.auth.x500.X500Principal issuer) |
void |
setNotAfter(java.util.Date notAfter) |
void |
setNotBefore(java.util.Date notBefore) |
void |
setPort(int port) |
void |
setSignature(byte[] signature) |
void |
setTargets(java.util.List<java.lang.String> targets) |
void |
setVO(java.lang.String vO) |
void |
setVOMSAC(org.bouncycastle.cert.X509AttributeCertificateHolder ac) |
java.lang.String |
toString() |
boolean |
validAt(java.util.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
private java.lang.String VO
private java.lang.String host
private int port
private java.util.List<java.lang.String> FQANs
private javax.security.auth.x500.X500Principal issuer
private javax.security.auth.x500.X500Principal holder
private java.math.BigInteger holderSerialNumber
private java.util.Date notAfter
private java.util.Date notBefore
private byte[] signature
private java.util.List<VOMSGenericAttribute> genericAttributes
private java.util.List<java.lang.String> acTargets
private java.security.cert.X509Certificate[] aaCerts
private org.bouncycastle.cert.X509AttributeCertificateHolder VOMSAC
public javax.security.auth.x500.X500Principal getIssuer()
VOMSAttributegetIssuer in interface VOMSAttributepublic java.lang.String getPrimaryFQAN()
VOMSAttributeVOMSAttribute.getFQANs()) in this VOMSAttribute.getPrimaryFQAN in interface VOMSAttributepublic java.lang.String getVO()
VOMSAttributegetVO in interface VOMSAttributepublic void setIssuer(javax.security.auth.x500.X500Principal issuer)
public void setVO(java.lang.String vO)
public java.util.List<java.lang.String> getFQANs()
VOMSAttributeVOMSAttribute.getFQANs in interface VOMSAttributeList of VOMS fully qualified attribute namespublic void setFQANs(java.util.List<java.lang.String> fQANs)
public java.lang.String getHost()
VOMSAttributegetHost in interface VOMSAttributepublic int getPort()
VOMSAttributegetPort in interface VOMSAttributepublic javax.security.auth.x500.X500Principal getHolder()
VOMSAttributeX500Principal) of the holder
of these VOMS attributesgetHolder in interface VOMSAttributepublic java.util.Date getNotBefore()
VOMSAttributegetNotBefore in interface VOMSAttributepublic java.util.Date getNotAfter()
VOMSAttributegetNotAfter in interface VOMSAttributepublic byte[] getSignature()
VOMSAttributegetSignature in interface VOMSAttributepublic void setHost(java.lang.String host)
public void setPort(int port)
public void setHolder(javax.security.auth.x500.X500Principal holder)
public void setNotAfter(java.util.Date notAfter)
public void setNotBefore(java.util.Date notBefore)
public void setSignature(byte[] signature)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<VOMSGenericAttribute> getGenericAttributes()
VOMSAttributeVOMSAttribute.getGenericAttributes in interface VOMSAttributepublic void setGenericAttributes(java.util.List<VOMSGenericAttribute> genericAttributes)
public java.util.List<java.lang.String> getTargets()
VOMSAttributeVOMSAttribute.getTargets in interface VOMSAttributepublic void setTargets(java.util.List<java.lang.String> targets)
public java.security.cert.X509Certificate[] getAACertificates()
VOMSAttributeVOMSAttribute.getAACertificates in interface VOMSAttributepublic void setAACertificates(java.security.cert.X509Certificate[] aaCerts)
public boolean isValid()
VOMSAttributeisValid in interface VOMSAttributetrue if valid, false otherwisepublic boolean validAt(java.util.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 java.math.BigInteger getHolderSerialNumber()
VOMSAttributegetHolderSerialNumber in interface VOMSAttributepublic void setHolderSerialNumber(java.math.BigInteger holderSerialNumber)