Class VOMSAttributesImpl

  • All Implemented Interfaces:
    VOMSAttribute

    public class VOMSAttributesImpl
    extends Object
    implements VOMSAttribute
    The default implementation for voms attributes
    Author:
    andreaceccanti
    • Field Detail

      • DEFAULT_CLOCK_SKEW_IN_MINUTES

        public static final int DEFAULT_CLOCK_SKEW_IN_MINUTES
        See Also:
        Constant Field Values
    • Constructor Detail

      • VOMSAttributesImpl

        public VOMSAttributesImpl()
    • Method Detail

      • getIssuer

        public X500Principal getIssuer()
        Description copied from interface: VOMSAttribute
        This method returns the subject of the VOMS Attribute Authority that signed these attributes.
        Specified by:
        getIssuer in interface VOMSAttribute
        Returns:
        The subject of the VOMS AA that signed these attributes
      • getVO

        public String getVO()
        Description copied from interface: VOMSAttribute
        This method returns the name of the VO this VOMS attributes are about
        Specified by:
        getVO in interface VOMSAttribute
        Returns:
        The name of the VO this VOMS attributes are about
      • setVO

        public void setVO​(String vO)
      • getFQANs

        public List<String> getFQANs()
        Description copied from interface: VOMSAttribute
        This method returns the list of signed Fully Qualified Attribute Names (FQANs) in this VOMSAttribute.
        Specified by:
        getFQANs in interface VOMSAttribute
        Returns:
        The List of VOMS fully qualified attribute names
      • setFQANs

        public void setFQANs​(List<String> fQANs)
      • getHost

        public String getHost()
        Description copied from interface: VOMSAttribute
        This method returns the host where the VOMS Attribute Authority (AA) that signed these attribute lives
        Specified by:
        getHost in interface VOMSAttribute
        Returns:
        The name of the host where the VOMS AA that signed these attributes lives
      • getPort

        public int getPort()
        Description copied from interface: VOMSAttribute
        This method returns the port on which the VOMS Attribute Authority (AA) that signed these attributes listens for requests.
        Specified by:
        getPort in interface VOMSAttribute
        Returns:
        The port on which the VOMS AA that signed these attributes listens for requests
      • getNotBefore

        public Date getNotBefore()
        Description copied from interface: VOMSAttribute
        This method returns the attributes' validity start time
        Specified by:
        getNotBefore in interface VOMSAttribute
        Returns:
        The attributes' validity start time
      • getNotAfter

        public Date getNotAfter()
        Description copied from interface: VOMSAttribute
        This method returns the attributes' validity end time
        Specified by:
        getNotAfter in interface VOMSAttribute
        Returns:
        The attributes' validity end time
      • getSignature

        public byte[] getSignature()
        Description copied from interface: VOMSAttribute
        This method returns the signature on the VOMS attribute certificate as a byte array.
        Specified by:
        getSignature in interface VOMSAttribute
        Returns:
        The signature of this VOMS attributes
      • setHost

        public void setHost​(String host)
      • setPort

        public void setPort​(int port)
      • setNotAfter

        public void setNotAfter​(Date notAfter)
      • setNotBefore

        public void setNotBefore​(Date notBefore)
      • setSignature

        public void setSignature​(byte[] signature)
      • setTargets

        public void setTargets​(List<String> targets)
      • setAACertificates

        public void setAACertificates​(X509Certificate[] aaCerts)
      • isValid

        public boolean isValid()
        Description copied from interface: VOMSAttribute
        This method checks whether the attributes are valid in the current instant of time. No validation is performed on the attributes.
        Specified by:
        isValid in interface VOMSAttribute
        Returns:
        true if valid, false otherwise
      • validAt

        public boolean validAt​(Date date)
        Description copied from interface: VOMSAttribute
        This method checks whether the attributes are valid in a given time passed as argument. No validation is performed on the attributes.
        Specified by:
        validAt in interface VOMSAttribute
        Parameters:
        date - the time used for the validity check
        Returns:
        true if valid, false otherwise
      • getVOMSAC

        public org.bouncycastle.cert.X509AttributeCertificateHolder getVOMSAC()
        Description copied from interface: VOMSAttribute
        This method returns the underlying VOMS Attribute certificate object.
        Specified by:
        getVOMSAC in interface VOMSAttribute
        Returns:
        the underlying bouncycastle object for the VOMS attribute certificate.
      • setVOMSAC

        public void setVOMSAC​(org.bouncycastle.cert.X509AttributeCertificateHolder ac)
      • getHolderSerialNumber

        public BigInteger getHolderSerialNumber()
        Description copied from interface: VOMSAttribute
        This method returns the holder certificate serial number
        Specified by:
        getHolderSerialNumber in interface VOMSAttribute
        Returns:
        The serial number of the holder certificate
      • setHolderSerialNumber

        public void setHolderSerialNumber​(BigInteger holderSerialNumber)