src/Provider/Keycloak.php
public function decryptResponse($response)
    {
        if (!is_string($response)) {
            return $response;
        }

        if ($this->usesEncryption()) {
            return json_decode(
                json_encode(
                    JWT::decode(
                        $response,
                        $this->encryptionKey,
                        array($this->encryptionAlgorithm)
                    )
                ),
                true
            );
        }

        throw EncryptionConfigurationException::undeterminedEncryption();
    }
public function decryptResponse($response)
    {
        if (!is_string($response)) {
            return $response;
        }

        if ($this->usesEncryption()) {
            return json_decode(
                json_encode(
                    JWT::decode(
                        $response,
                        $this->encryptionKey,
                        array($this->encryptionAlgorithm)
                    )
                ),
                true
            );
        }

        throw EncryptionConfigurationException::undeterminedEncryption();
    }
public function decryptResponse ( $ response ) { if ( ! is_string ( $ response ) ) { return $ response ; } if ( $ this -> usesEncryption ( ) ) { return json_decode ( json_encode ( JWT :: decode ( $ response , $ this -> encryptionKey , array ( $ this -> encryptionAlgorithm ) ) ) , true ) ; } throw EncryptionConfigurationException :: undeterminedEncryption ( ) ; }
Attempts to decrypt the given response.

@param  string|array|null $response

@return string|array|null
Attempts to decrypt the given response .