PHP Class Emarref\Jwt\Jwt

Datei anzeigen Open project: emarref/jwt Class Usage Examples

Public Methods

Method Description
__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

Protected Methods

Method Description
getVerifiers ( Context $context ) : Emarref\Jwt\Verification\VerifierInterface[]

Method Details

__construct() public method

public __construct ( )

deserialize() public method

public deserialize ( string $jwt ) : Token
$jwt string
return Token

getVerifiers() protected method

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

serialize() public method

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

sign() public method

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

verify() public method

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