PHP 클래스 Lcobucci\JWT\Parser

부터: 0.1.0
저자: Luís Otávio Cobucci Oblonczyk ([email protected])
파일 보기 프로젝트 열기: lcobucci/jwt 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Lcobucci\Jose\Parsing\Decoder $decoder, Factory $claimFactory ) Initializes the object
parse ( string $jwt ) : Token Parses the JWT and returns a token

보호된 메소드들

메소드 설명
parseClaims ( string $data ) : array Parses the claim set from a string
parseHeader ( string $data ) : array Parses the header from a string
parseSignature ( array $header, string $data ) : Lcobucci\JWT\Signature | null Returns the signature from given data
splitJwt ( string $jwt ) : array Splits the JWT string into an array

메소드 상세

__construct() 공개 메소드

Initializes the object
public __construct ( Lcobucci\Jose\Parsing\Decoder $decoder, Factory $claimFactory )
$decoder Lcobucci\Jose\Parsing\Decoder
$claimFactory Lcobucci\JWT\Claim\Factory

parse() 공개 메소드

Parses the JWT and returns a token
public parse ( string $jwt ) : Token
$jwt string
리턴 Token

parseClaims() 보호된 메소드

Parses the claim set from a string
protected parseClaims ( string $data ) : array
$data string
리턴 array

parseHeader() 보호된 메소드

Parses the header from a string
protected parseHeader ( string $data ) : array
$data string
리턴 array

parseSignature() 보호된 메소드

Returns the signature from given data
protected parseSignature ( array $header, string $data ) : Lcobucci\JWT\Signature | null
$header array
$data string
리턴 Lcobucci\JWT\Signature | null

splitJwt() 보호된 메소드

Splits the JWT string into an array
protected splitJwt ( string $jwt ) : array
$jwt string
리턴 array