Method | Description | |
---|---|---|
__construct ( Mdanter\Ecc\Serializer\PrivateKey\PrivateKeySerializerInterface $privateKeySerializer, Mdanter\Ecc\Serializer\PublicKey\PublicKeySerializerInterface $publicKeySerializer ) | ||
create ( Mdanter\Ecc\Math\GmpMathInterface $adapter ) : |
||
getPrivateKey ( Lcobucci\JWT\Signer\Key $key ) : Mdanter\Ecc\Crypto\Key\PrivateKeyInterface | Parses a private key from the given PEM content | |
getPublicKey ( Lcobucci\JWT\Signer\Key $key ) : Mdanter\Ecc\Crypto\Key\PublicKeyInterface | Parses a public key from the given PEM content |
Method | Description | |
---|---|---|
getKeyContent ( Lcobucci\JWT\Signer\Key $key, string $header ) : string | Extracts the base 64 value from the PEM certificate |
public __construct ( Mdanter\Ecc\Serializer\PrivateKey\PrivateKeySerializerInterface $privateKeySerializer, Mdanter\Ecc\Serializer\PublicKey\PublicKeySerializerInterface $publicKeySerializer ) | ||
$privateKeySerializer | Mdanter\Ecc\Serializer\PrivateKey\PrivateKeySerializerInterface | |
$publicKeySerializer | Mdanter\Ecc\Serializer\PublicKey\PublicKeySerializerInterface |
public static create ( Mdanter\Ecc\Math\GmpMathInterface $adapter ) : |
||
$adapter | Mdanter\Ecc\Math\GmpMathInterface | |
return |
public getPrivateKey ( Lcobucci\JWT\Signer\Key $key ) : Mdanter\Ecc\Crypto\Key\PrivateKeyInterface | ||
$key | Lcobucci\JWT\Signer\Key | |
return | Mdanter\Ecc\Crypto\Key\PrivateKeyInterface |
public getPublicKey ( Lcobucci\JWT\Signer\Key $key ) : Mdanter\Ecc\Crypto\Key\PublicKeyInterface | ||
$key | Lcobucci\JWT\Signer\Key | |
return | Mdanter\Ecc\Crypto\Key\PublicKeyInterface |