Package org.italiangrid.voms.ac.impl
Class VOMSAttributesImpl
java.lang.Object
org.italiangrid.voms.ac.impl.VOMSAttributesImpl
- All Implemented Interfaces:
VOMSAttribute
The default implementation for voms attributes
- Author:
- andreaceccanti
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the certificate chain of the VOMS Attribute Authority (AA) that signed thisVOMSAttribute.getFQANs()This method returns the list of signed Fully Qualified Attribute Names (FQANs) in thisVOMSAttribute.This method returns the list of VOMS Generic attributes in thisVOMSAttribute.This method returns the subject (as anX500Principal) of the holder of these VOMS attributesThis method returns the holder certificate serial numbergetHost()This method returns the host where the VOMS Attribute Authority (AA) that signed these attribute livesThis method returns the subject of the VOMS Attribute Authority that signed these attributes.This method returns the attributes' validity end timeThis method returns the attributes' validity start timeintgetPort()This method returns the port on which the VOMS Attribute Authority (AA) that signed these attributes listens for requests.This method returns the primary FQAN (the first in the list returned byVOMSAttribute.getFQANs()) in thisVOMSAttribute.byte[]This method returns the signature on the VOMS attribute certificate as a byte array.This method returns the list of targets defined for thisVOMSAttribute.getVO()This method returns the name of the VO this VOMS attributes are aboutorg.bouncycastle.cert.X509AttributeCertificateHolderThis method returns the underlying VOMS Attribute certificate object.booleanisValid()This method checks whether the attributes are valid in the current instant of time.voidsetAACertificates(X509Certificate[] aaCerts) voidvoidsetGenericAttributes(List<VOMSGenericAttribute> genericAttributes) voidsetHolder(X500Principal holder) voidsetHolderSerialNumber(BigInteger holderSerialNumber) voidvoidsetIssuer(X500Principal issuer) voidsetNotAfter(Date notAfter) voidsetNotBefore(Date notBefore) voidsetPort(int port) voidsetSignature(byte[] signature) voidsetTargets(List<String> targets) voidvoidsetVOMSAC(org.bouncycastle.cert.X509AttributeCertificateHolder ac) toString()booleanThis method checks whether the attributes are valid in a given time passed as argument.
-
Field Details
-
DEFAULT_CLOCK_SKEW_IN_MINUTES
public static final int DEFAULT_CLOCK_SKEW_IN_MINUTES- See Also:
-
-
Constructor Details
-
VOMSAttributesImpl
public VOMSAttributesImpl()
-
-
Method Details
-
getIssuer
Description copied from interface:VOMSAttributeThis method returns the subject of the VOMS Attribute Authority that signed these attributes.- Specified by:
getIssuerin interfaceVOMSAttribute- Returns:
- The subject of the VOMS AA that signed these attributes
-
getPrimaryFQAN
Description copied from interface:VOMSAttributeThis method returns the primary FQAN (the first in the list returned byVOMSAttribute.getFQANs()) in thisVOMSAttribute.- Specified by:
getPrimaryFQANin interfaceVOMSAttribute- Returns:
- The primary VOMS fully qualified attribute name
-
getVO
Description copied from interface:VOMSAttributeThis method returns the name of the VO this VOMS attributes are about- Specified by:
getVOin interfaceVOMSAttribute- Returns:
- The name of the VO this VOMS attributes are about
-
setIssuer
-
setVO
-
getFQANs
Description copied from interface:VOMSAttributeThis method returns the list of signed Fully Qualified Attribute Names (FQANs) in thisVOMSAttribute.- Specified by:
getFQANsin interfaceVOMSAttribute- Returns:
- The
Listof VOMS fully qualified attribute names
-
setFQANs
-
getHost
Description copied from interface:VOMSAttributeThis method returns the host where the VOMS Attribute Authority (AA) that signed these attribute lives- Specified by:
getHostin interfaceVOMSAttribute- Returns:
- The name of the host where the VOMS AA that signed these attributes lives
-
getPort
public int getPort()Description copied from interface:VOMSAttributeThis method returns the port on which the VOMS Attribute Authority (AA) that signed these attributes listens for requests.- Specified by:
getPortin interfaceVOMSAttribute- Returns:
- The port on which the VOMS AA that signed these attributes listens for requests
-
getHolder
Description copied from interface:VOMSAttributeThis method returns the subject (as anX500Principal) of the holder of these VOMS attributes- Specified by:
getHolderin interfaceVOMSAttribute- Returns:
- The subject of the holder of these VOMS attributes
-
getNotBefore
Description copied from interface:VOMSAttributeThis method returns the attributes' validity start time- Specified by:
getNotBeforein interfaceVOMSAttribute- Returns:
- The attributes' validity start time
-
getNotAfter
Description copied from interface:VOMSAttributeThis method returns the attributes' validity end time- Specified by:
getNotAfterin interfaceVOMSAttribute- Returns:
- The attributes' validity end time
-
getSignature
public byte[] getSignature()Description copied from interface:VOMSAttributeThis method returns the signature on the VOMS attribute certificate as a byte array.- Specified by:
getSignaturein interfaceVOMSAttribute- Returns:
- The signature of this VOMS attributes
-
setHost
-
setPort
public void setPort(int port) -
setHolder
-
setNotAfter
-
setNotBefore
-
setSignature
public void setSignature(byte[] signature) -
toString
-
getGenericAttributes
Description copied from interface:VOMSAttributeThis method returns the list of VOMS Generic attributes in thisVOMSAttribute.- Specified by:
getGenericAttributesin interfaceVOMSAttribute- Returns:
- The VOMS generic attributes
-
setGenericAttributes
-
getTargets
Description copied from interface:VOMSAttributeThis method returns the list of targets defined for thisVOMSAttribute.- Specified by:
getTargetsin interfaceVOMSAttribute- Returns:
- The targets for this VOMS attributes
-
setTargets
-
getAACertificates
Description copied from interface:VOMSAttributeThis method returns the certificate chain of the VOMS Attribute Authority (AA) that signed thisVOMSAttribute.- Specified by:
getAACertificatesin interfaceVOMSAttribute- Returns:
- The VOMS AA certificate chain
-
setAACertificates
-
isValid
public boolean isValid()Description copied from interface:VOMSAttributeThis method checks whether the attributes are valid in the current instant of time. No validation is performed on the attributes.- Specified by:
isValidin interfaceVOMSAttribute- Returns:
trueif valid,falseotherwise
-
validAt
Description copied from interface:VOMSAttributeThis method checks whether the attributes are valid in a given time passed as argument. No validation is performed on the attributes.- Specified by:
validAtin interfaceVOMSAttribute- Parameters:
date- the time used for the validity check- Returns:
trueif valid,falseotherwise
-
getVOMSAC
public org.bouncycastle.cert.X509AttributeCertificateHolder getVOMSAC()Description copied from interface:VOMSAttributeThis method returns the underlying VOMS Attribute certificate object.- Specified by:
getVOMSACin interfaceVOMSAttribute- Returns:
- the underlying bouncycastle object for the VOMS attribute certificate.
-
setVOMSAC
public void setVOMSAC(org.bouncycastle.cert.X509AttributeCertificateHolder ac) -
getHolderSerialNumber
Description copied from interface:VOMSAttributeThis method returns the holder certificate serial number- Specified by:
getHolderSerialNumberin interfaceVOMSAttribute- Returns:
- The serial number of the holder certificate
-
setHolderSerialNumber
-