PHP 클래스 Namshi\JOSE\Signer\OpenSSL\PublicKey

상속: implements Namshi\JOSE\Signer\SignerInterface
파일 보기 프로젝트 열기: namshi/jose 1 사용 예제들

공개 메소드들

메소드 설명
sign ( $input, $key, $password = null )
verify ( $key, $signature, $input )

보호된 메소드들

메소드 설명
getHashingAlgorithm ( ) : string Returns the hashing algorithm used in this signer.
getKeyResource ( string | resource $key, string $password = null ) : resource Converts a string representation of a key into an OpenSSL resource.
getSupportedPrivateKeyType ( ) : string Returns the private key type supported in this signer.
supportsKey ( resource $key ) : boolean Check if the key is supported by this signer.

메소드 상세

getHashingAlgorithm() 추상적인 보호된 메소드

Returns the hashing algorithm used in this signer.
abstract protected getHashingAlgorithm ( ) : string
리턴 string

getKeyResource() 보호된 메소드

Converts a string representation of a key into an OpenSSL resource.
protected getKeyResource ( string | resource $key, string $password = null ) : resource
$key string | resource
$password string
리턴 resource OpenSSL key resource

getSupportedPrivateKeyType() 추상적인 보호된 메소드

Returns the private key type supported in this signer.
abstract protected getSupportedPrivateKeyType ( ) : string
리턴 string

sign() 공개 메소드

public sign ( $input, $key, $password = null )

supportsKey() 보호된 메소드

Check if the key is supported by this signer.
protected supportsKey ( resource $key ) : boolean
$key resource Public or private key
리턴 boolean

verify() 공개 메소드

public verify ( $key, $signature, $input )