PHP 클래스 Lcobucci\JWT\Signer\Ecdsa\KeyParser

부터: 3.0.4
저자: Luís Otávio Cobucci Oblonczyk ([email protected])
파일 보기 프로젝트 열기: lcobucci/jwt 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Mdanter\Ecc\Serializer\PrivateKey\PrivateKeySerializerInterface $privateKeySerializer, Mdanter\Ecc\Serializer\PublicKey\PublicKeySerializerInterface $publicKeySerializer )
create ( Mdanter\Ecc\Math\GmpMathInterface $adapter ) : KeyParser
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

비공개 메소드들

메소드 설명
getKeyContent ( Lcobucci\JWT\Signer\Key $key, string $header ) : string Extracts the base 64 value from the PEM certificate

메소드 상세

__construct() 공개 메소드

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

create() 공개 정적인 메소드

public static create ( Mdanter\Ecc\Math\GmpMathInterface $adapter ) : KeyParser
$adapter Mdanter\Ecc\Math\GmpMathInterface
리턴 KeyParser

getPrivateKey() 공개 메소드

Parses a private key from the given PEM content
public getPrivateKey ( Lcobucci\JWT\Signer\Key $key ) : Mdanter\Ecc\Crypto\Key\PrivateKeyInterface
$key Lcobucci\JWT\Signer\Key
리턴 Mdanter\Ecc\Crypto\Key\PrivateKeyInterface

getPublicKey() 공개 메소드

Parses a public key from the given PEM content
public getPublicKey ( Lcobucci\JWT\Signer\Key $key ) : Mdanter\Ecc\Crypto\Key\PublicKeyInterface
$key Lcobucci\JWT\Signer\Key
리턴 Mdanter\Ecc\Crypto\Key\PublicKeyInterface