Method |
Description |
|
__construct ( string $type, null | array $params = null ) |
|
|
convertRSA ( string $modulus, string $exponent ) : string |
Hint: Modulus and Exponent must already be base64 decoded |
|
decryptData ( string $data ) : mixed | string |
Decrypts the given data (string) using the regarding php-extension, depending on the library assigned to algorithm in the contructor. |
|
encryptData ( string $data ) : mixed | string |
Encrypts the given data (string) using the regarding php-extension, depending on the library assigned to algorithm in the contructor. |
|
fromEncryptedKeyElement ( DOMElemen\DOMElement $element ) : XMLSecurityKey |
Create key from an EncryptedKey-element. |
|
generateSessionKey ( ) : string |
Generates a session key using the openssl-extension or using the mcrypt-extension as a fallback. |
|
getAlgorith ( ) : mixed |
|
|
getAlgorithm ( ) : mixed |
|
|
getRawThumbprint ( string $cert ) : null | string |
Get the raw thumbprint of a certificate |
|
getSymmetricKeySize ( ) : integer | null |
Retrieve the key size for the symmetric encryption algorithm. |
|
getX509Certificate ( ) : string |
Retrieve the X509 certificate this key represents. |
|
getX509Thumbprint ( ) : string |
Get the thumbprint of this X509 certificate. |
|
loadKey ( string $key, boolean $isFile = false, boolean $isCert = false ) |
Loads the given key, or - with isFile set true - the key from the keyfile. |
|
makeAsnSegment ( integer $type, string $string ) : null | string |
|
|
serializeKey ( mixed $parent ) |
|
|
signData ( string $data ) : mixed | string |
Signs the data (string) using the extension assigned to the type in the constructor. |
|
verifySignature ( string $data, string $signature ) : boolean | integer |
Verifies the data (string) against the given signature using the extension assigned to the type in the constructor. |
|