private function _validateHolder(): Certificate
    {
        $path = $this->_config->holderPath();
        $config = PathValidationConfig::defaultConfig()->withMaxLength(
            count($path))->withDateTime($this->_config->evaluationTime());
        try {
            $holder = $path->validate($config, $this->_crypto)->certificate();
        } catch (PathValidationException $e) {
            throw new ACValidationException(
                "Failed to validate holder PKC's certification path.", 0, $e);
        }
        if (!$this->_ac->isHeldBy($holder)) {
            throw new ACValidationException("Name mismatch of AC's holder PKC.");
        }
        return $holder;
    }
private function _validateHolder(): Certificate
    {
        $path = $this->_config->holderPath();
        $config = PathValidationConfig::defaultConfig()->withMaxLength(
            count($path))->withDateTime($this->_config->evaluationTime());
        try {
            $holder = $path->validate($config, $this->_crypto)->certificate();
        } catch (PathValidationException $e) {
            throw new ACValidationException(
                "Failed to validate holder PKC's certification path.", 0, $e);
        }
        if (!$this->_ac->isHeldBy($holder)) {
            throw new ACValidationException("Name mismatch of AC's holder PKC.");
        }
        return $holder;
    }
private function _validateHolder ( ) : Certificate { $ path = $ this -> _config -> holderPath ( ) ; $ config = PathValidationConfig :: defaultConfig ( ) -> withMaxLength ( count ( $ path ) ) -> withDateTime ( $ this -> _config -> evaluationTime ( ) ) ; try { $ holder = $ path -> validate ( $ config , $ this -> _crypto ) -> certificate ( ) ; } catch ( PathValidationException $ e ) { throw new ACValidationException ( "Failed to validate holder PKC's certification path." , 0 , $ e ) ; } if ( ! $ this -> _ac -> isHeldBy ( $ holder ) ) { throw new ACValidationException ( "Name mismatch of AC's holder PKC." ) ; } return $ holder ; }
Validate AC holder's certification.

@throws ACValidationException
@return Certificate Certificate of the AC's holder
Validate AC holder s certification .