You are here

public function XMLSecurityKey::decryptData in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8

Decrypts the given data (string) using the regarding php-extension, depending on the library assigned to algorithm in the contructor.

Parameters

string $data:

Return value

mixed|string

File

src/XMLSecurityKey.php, line 524

Class

XMLSecurityKey

Namespace

Drupal\miniorange_saml

Code

public function decryptData($data) {
  switch ($this->cryptParams['library']) {
    case 'mcrypt':
      return $this
        ->decryptMcrypt($data);
    case 'openssl':
      return $this
        ->decryptOpenSSL($data);
  }
}