lib/KeyPairReference.php
public function getKeyPair()
    {
    	if (!isset($this->keyPair)) {
	    	$keyProviderCollection = KeyProviderCollector::getInstance();
	    	$keyProvider = $keyProviderCollection->getProvider($this->providerId);
	    	if (!$keyProvider) {
	    		throw new InaccessibleKeyPairException("Key pair provider ({$this->providerId}) has not been loaded in this instance");
	    	}
	    	$this->keyPair = $keyProvider->get($this->keyPairId);
	    }
	    return $this->keyPair;
    }
public function getKeyPair()
    {
    	if (!isset($this->keyPair)) {
	    	$keyProviderCollection = KeyProviderCollector::getInstance();
	    	$keyProvider = $keyProviderCollection->getProvider($this->providerId);
	    	if (!$keyProvider) {
	    		throw new InaccessibleKeyPairException("Key pair provider ({$this->providerId}) has not been loaded in this instance");
	    	}
	    	$this->keyPair = $keyProvider->get($this->keyPairId);
	    }
	    return $this->keyPair;
    }
public function getKeyPair ( ) { if ( ! isset ( $ this -> keyPair ) ) { $ keyProviderCollection = KeyProviderCollector :: getInstance ( ) ; $ keyProvider = $ keyProviderCollection -> getProvider ( $ this -> providerId ) ; if ( ! $ keyProvider ) { throw new InaccessibleKeyPairException ( "Key pair provider ({$this->providerId}) has not been loaded in this instance" ) ; } $ this -> keyPair = $ keyProvider -> get ( $ this -> keyPairId ) ; } return $ this -> keyPair ; }
Retrieves the referenced KeyPair from the provider

@return \canis\keyProvider\encryption\KeyPairInterface the KeyPair object referenced
Retrieves the referenced KeyPair from the provider