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()
VOMSAttribute
getIssuer
in interface VOMSAttribute
public String getPrimaryFQAN()
VOMSAttribute
VOMSAttribute.getFQANs()
) in this VOMSAttribute
.getPrimaryFQAN
in interface VOMSAttribute
public String getVO()
VOMSAttribute
getVO
in interface VOMSAttribute
public void setIssuer(X500Principal issuer)
public void setVO(String vO)
public List<String> getFQANs()
VOMSAttribute
VOMSAttribute
.getFQANs
in interface VOMSAttribute
List
of VOMS fully qualified attribute namespublic String getHost()
VOMSAttribute
getHost
in interface VOMSAttribute
public int getPort()
VOMSAttribute
getPort
in interface VOMSAttribute
public X500Principal getHolder()
VOMSAttribute
X500Principal
) of the holder
of these VOMS attributesgetHolder
in interface VOMSAttribute
public Date getNotBefore()
VOMSAttribute
getNotBefore
in interface VOMSAttribute
public Date getNotAfter()
VOMSAttribute
getNotAfter
in interface VOMSAttribute
public byte[] getSignature()
VOMSAttribute
getSignature
in interface VOMSAttribute
public 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()
VOMSAttribute
VOMSAttribute
.getGenericAttributes
in interface VOMSAttribute
public void setGenericAttributes(List<VOMSGenericAttribute> genericAttributes)
public List<String> getTargets()
VOMSAttribute
VOMSAttribute
.getTargets
in interface VOMSAttribute
public X509Certificate[] getAACertificates()
VOMSAttribute
VOMSAttribute
.getAACertificates
in interface VOMSAttribute
public void setAACertificates(X509Certificate[] aaCerts)
public boolean isValid()
VOMSAttribute
isValid
in interface VOMSAttribute
true
if valid, false
otherwisepublic boolean validAt(Date date)
VOMSAttribute
validAt
in interface VOMSAttribute
date
- the time used for the validity checktrue
if valid, false
otherwisepublic org.bouncycastle.cert.X509AttributeCertificateHolder getVOMSAC()
VOMSAttribute
getVOMSAC
in interface VOMSAttribute
public void setVOMSAC(org.bouncycastle.cert.X509AttributeCertificateHolder ac)
public BigInteger getHolderSerialNumber()
VOMSAttribute
getHolderSerialNumber
in interface VOMSAttribute
public void setHolderSerialNumber(BigInteger holderSerialNumber)
Copyright © 2018. All rights reserved.