PHP 클래스 Emarref\Jwt\Jwt

파일 보기 프로젝트 열기: emarref/jwt 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( )
deserialize ( string $jwt ) : Token
serialize ( Token $token, Emarref\Jwt\Encryption\EncryptionInterface $encryption ) : string
sign ( Token $token, Emarref\Jwt\Encryption\EncryptionInterface $encryption )
verify ( Token $token, Context $context ) : boolean

보호된 메소드들

메소드 설명
getVerifiers ( Context $context ) : Emarref\Jwt\Verification\VerifierInterface[]

메소드 상세

__construct() 공개 메소드

public __construct ( )

deserialize() 공개 메소드

public deserialize ( string $jwt ) : Token
$jwt string
리턴 Token

getVerifiers() 보호된 메소드

protected getVerifiers ( Context $context ) : Emarref\Jwt\Verification\VerifierInterface[]
$context Emarref\Jwt\Verification\Context
리턴 Emarref\Jwt\Verification\VerifierInterface[]

serialize() 공개 메소드

public serialize ( Token $token, Emarref\Jwt\Encryption\EncryptionInterface $encryption ) : string
$token Token
$encryption Emarref\Jwt\Encryption\EncryptionInterface
리턴 string

sign() 공개 메소드

public sign ( Token $token, Emarref\Jwt\Encryption\EncryptionInterface $encryption )
$token Token
$encryption Emarref\Jwt\Encryption\EncryptionInterface

verify() 공개 메소드

public verify ( Token $token, Context $context ) : boolean
$token Token
$context Emarref\Jwt\Verification\Context
리턴 boolean