PHP Class spec\GenTux\Jwt\JwtTokenSpec

Inheritance: extends PhpSpec\ObjectBehavior
Show file Open project: generationtux/jwt-artisan

Public Methods

Method Description
it_creates_new_tokens_from_a_jwt_payload_interface_object ( GenTux\Jwt\JwtPayloadInterface $payload, GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
it_creates_new_tokens_from_the_provided_payload ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
it_encodes_to_json_as_a_string_representation_of_the_token ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
it_gets_and_sets_the_current_jwt_token ( )
it_gets_and_sets_the_jwt_algorithm_to_use ( )
it_gets_and_sets_the_jwt_secret ( )
it_gets_the_payload_data_from_the_provided_dot_path ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
it_gets_the_payload_from_the_current_token ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
it_returns_false_on_validation_if_the_token_is_invalid ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
it_returns_true_on_validation_if_the_token_is_valid ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
it_throws_an_exception_on_validate_or_fail_if_the_token_is_invalid ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
let ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )

Method Details

it_creates_new_tokens_from_a_jwt_payload_interface_object() public method

public it_creates_new_tokens_from_a_jwt_payload_interface_object ( GenTux\Jwt\JwtPayloadInterface $payload, GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
$payload GenTux\Jwt\JwtPayloadInterface
$jwt GenTux\Jwt\Drivers\JwtDriverInterface

it_creates_new_tokens_from_the_provided_payload() public method

public it_creates_new_tokens_from_the_provided_payload ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
$jwt GenTux\Jwt\Drivers\JwtDriverInterface

it_encodes_to_json_as_a_string_representation_of_the_token() public method

public it_encodes_to_json_as_a_string_representation_of_the_token ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
$jwt GenTux\Jwt\Drivers\JwtDriverInterface

it_gets_and_sets_the_current_jwt_token() public method

it_gets_and_sets_the_jwt_algorithm_to_use() public method

it_gets_and_sets_the_jwt_secret() public method

it_gets_the_payload_data_from_the_provided_dot_path() public method

public it_gets_the_payload_data_from_the_provided_dot_path ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
$jwt GenTux\Jwt\Drivers\JwtDriverInterface

it_gets_the_payload_from_the_current_token() public method

public it_gets_the_payload_from_the_current_token ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
$jwt GenTux\Jwt\Drivers\JwtDriverInterface

it_returns_false_on_validation_if_the_token_is_invalid() public method

public it_returns_false_on_validation_if_the_token_is_invalid ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
$jwt GenTux\Jwt\Drivers\JwtDriverInterface

it_returns_true_on_validation_if_the_token_is_valid() public method

public it_returns_true_on_validation_if_the_token_is_valid ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
$jwt GenTux\Jwt\Drivers\JwtDriverInterface

it_throws_an_exception_on_validate_or_fail_if_the_token_is_invalid() public method

public it_throws_an_exception_on_validate_or_fail_if_the_token_is_invalid ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
$jwt GenTux\Jwt\Drivers\JwtDriverInterface

let() public method

public let ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt )
$jwt GenTux\Jwt\Drivers\JwtDriverInterface