You are here

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

Retrieve the key size for the symmetric encryption algorithm..

If the key size is unknown, or this isn't a symmetric encryption algorithm, null is returned.

Return value

int|null The number of bytes in the key.

File

src/XMLSecurityKey.php, line 232

Class

XMLSecurityKey

Namespace

Drupal\miniorange_saml

Code

public function getSymmetricKeySize() {
  if (!isset($this->cryptParams['keysize'])) {
    return null;
  }
  return $this->cryptParams['keysize'];
}