Class DefaultVOMSValidator

    • Method Detail

      • validateWithResult

        public java.util.List<VOMSValidationResult> validateWithResult​(java.security.cert.X509Certificate[] validatedChain)
        Description copied from interface: VOMSACValidator
        Parses and validates the VOMS attributes found in the certificate chain passed as argument (which is assumed to be validated already). This method returns a possibly empty list of VOMSValidationResult objects which describe the outcome of the validation for each VOMS AC found in the certificate chain. This method is useful when you want to use a single call to get all details about validation without relying on the registration of a ValidationResultListener.
        Specified by:
        validateWithResult in interface VOMSACValidator
        Parameters:
        validatedChain - a chain of X.509 certificates
        Returns:
        a possibly empty list of VOMSValidationResult object providing access to validation results and related attributes
      • internalValidate

        protected java.util.List<VOMSValidationResult> internalValidate​(java.security.cert.X509Certificate[] validatedChain)
      • validate

        public java.util.List<VOMSAttribute> validate​(java.security.cert.X509Certificate[] validatedChain)
        Description copied from interface: VOMSACValidator
        Parses and validates the VOMS attributes found in the certificate chain passed as argument (which is assumed to be validated already). This method returns the possibly empty list of the validated attributes. This method should be used in conjunction with the registration of a ValidationResultListener to get details about validation error and warning messages. Use the VOMSACValidator.validateWithResult(X509Certificate[]) method in case you don't want to rely on a ValidationResultListener.
        Specified by:
        validate in interface VOMSACValidator
        Parameters:
        validatedChain - a validated X.509 certificate chain
        Returns:
        a possibly empty list of VOMSAttribute object providing access to the validated VOMS attributes
      • shutdown

        public void shutdown()
        Description copied from interface: VOMSACValidator
        Shutdown the VOMS validator. This method should be called to perform final cleanup operations.
        Specified by:
        shutdown in interface VOMSACValidator
      • validateACs

        public java.util.List<org.bouncycastle.asn1.x509.AttributeCertificate> validateACs​(java.util.List<org.bouncycastle.asn1.x509.AttributeCertificate> acs)
        Description copied from interface: VOMSACValidator
        Validates the VOMS attributes found in the attribute certificate list passed as argument.
        Specified by:
        validateACs in interface VOMSACValidator
        Parameters:
        acs - a list of AttributeCertificate
        Returns:
        the validated and possibly empty list of AttributeCertificate object