You are here

public function JsonWebTokenInterface::getClaim in JSON Web Token Authentication (JWT) 8.0

Same name and namespace in other branches
  1. 8 src/JsonWebToken/JsonWebTokenInterface.php \Drupal\jwt\JsonWebToken\JsonWebTokenInterface::getClaim()

Retrieve a claim from the JWT payload.

@returns mixed The contents of the claim.

Parameters

mixed $claim: Either a string or indexed array of strings (if nested) representing the claim to retrieve. If an indexed array is passed, it will be used to traverse the JWT where the 0th element is the topmost claim.

1 method overrides JsonWebTokenInterface::getClaim()
JsonWebToken::getClaim in src/JsonWebToken/JsonWebToken.php
Retrieve a claim from the JWT payload.

File

src/JsonWebToken/JsonWebTokenInterface.php, line 30

Class

JsonWebTokenInterface
Interface JsonWebTokenInterface.

Namespace

Drupal\jwt\JsonWebToken

Code

public function getClaim($claim);