You are here

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

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

includes/XMLSecurityKey.php, line 265

Class

XMLSecurityKey

Code

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