SYMBOL INDEX (784 symbols across 137 files) FILE: src/Builder.php type Builder (line 16) | interface Builder method permittedFor (line 23) | #[NoDiscard] method expiresAt (line 29) | #[NoDiscard] method identifiedBy (line 37) | #[NoDiscard] method issuedAt (line 43) | #[NoDiscard] method issuedBy (line 51) | #[NoDiscard] method canOnlyBeUsedAfter (line 57) | #[NoDiscard] method relatedTo (line 65) | #[NoDiscard] method withHeader (line 73) | #[NoDiscard] method withClaim (line 83) | #[NoDiscard] method getToken (line 94) | #[NoDiscard] FILE: src/ClaimsFormatter.php type ClaimsFormatter (line 8) | interface ClaimsFormatter method formatClaims (line 15) | #[NoDiscard] FILE: src/Configuration.php class Configuration (line 19) | final readonly class Configuration method __construct (line 31) | private function __construct( method forAsymmetricSigner (line 53) | #[NoDiscard] method forSymmetricSigner (line 73) | #[NoDiscard] method withBuilderFactory (line 93) | #[NoDiscard] method builder (line 109) | public function builder(?ClaimsFormatter $claimFormatter = null): Builder method parser (line 114) | public function parser(): Parser method withParser (line 119) | #[NoDiscard] method signer (line 135) | public function signer(): Signer method signingKey (line 140) | public function signingKey(): Key method verificationKey (line 145) | public function verificationKey(): Key method validator (line 150) | public function validator(): Validator method withValidator (line 155) | #[NoDiscard] method validationConstraints (line 172) | public function validationConstraints(): array method withValidationConstraints (line 177) | #[NoDiscard] FILE: src/Decoder.php type Decoder (line 9) | interface Decoder method jsonDecode (line 18) | #[NoDiscard] method base64UrlDecode (line 30) | #[NoDiscard] FILE: src/Encoder.php type Encoder (line 9) | interface Encoder method jsonEncode (line 18) | #[NoDiscard] method base64UrlEncode (line 28) | #[NoDiscard] FILE: src/Encoding/CannotDecodeContent.php class CannotDecodeContent (line 10) | final class CannotDecodeContent extends RuntimeException implements Exce... method jsonIssues (line 12) | public static function jsonIssues(JsonException $previous): self method invalidBase64String (line 17) | public static function invalidBase64String(): self FILE: src/Encoding/CannotEncodeContent.php class CannotEncodeContent (line 10) | final class CannotEncodeContent extends RuntimeException implements Exce... method jsonIssues (line 12) | public static function jsonIssues(JsonException $previous): self FILE: src/Encoding/ChainedFormatter.php class ChainedFormatter (line 8) | final readonly class ChainedFormatter implements ClaimsFormatter method __construct (line 13) | public function __construct(ClaimsFormatter ...$formatters) method default (line 18) | public static function default(): self method withUnixTimestampDates (line 23) | public static function withUnixTimestampDates(): self method formatClaims (line 29) | public function formatClaims(array $claims): array FILE: src/Encoding/JoseEncoder.php class JoseEncoder (line 21) | final readonly class JoseEncoder implements Encoder, Decoder method jsonEncode (line 23) | public function jsonEncode(mixed $data): string method jsonDecode (line 32) | public function jsonDecode(string $json): mixed method base64UrlEncode (line 41) | public function base64UrlEncode(string $data): string method base64UrlDecode (line 49) | public function base64UrlDecode(string $data): string FILE: src/Encoding/MicrosecondBasedDateConversion.php class MicrosecondBasedDateConversion (line 12) | final readonly class MicrosecondBasedDateConversion implements ClaimsFor... method formatClaims (line 15) | public function formatClaims(array $claims): array method convertDate (line 28) | private function convertDate(DateTimeImmutable $date): int|float FILE: src/Encoding/UnifyAudience.php class UnifyAudience (line 13) | final readonly class UnifyAudience implements ClaimsFormatter method formatClaims (line 16) | public function formatClaims(array $claims): array FILE: src/Encoding/UnixTimestampDates.php class UnixTimestampDates (line 12) | final readonly class UnixTimestampDates implements ClaimsFormatter method formatClaims (line 15) | public function formatClaims(array $claims): array method convertDate (line 28) | private function convertDate(DateTimeImmutable $date): int FILE: src/Exception.php type Exception (line 8) | interface Exception extends Throwable FILE: src/JwtFacade.php class JwtFacade (line 20) | final readonly class JwtFacade method __construct (line 24) | public function __construct( method issue (line 37) | #[NoDiscard] method parse (line 55) | #[NoDiscard] FILE: src/Parser.php type Parser (line 11) | interface Parser method parse (line 22) | #[NoDiscard] FILE: src/Signer.php type Signer (line 13) | interface Signer method algorithmId (line 20) | public function algorithmId(): string; method sign (line 33) | #[NoDiscard] method verify (line 45) | #[NoDiscard] FILE: src/Signer/Blake2b.php class Blake2b (line 12) | final readonly class Blake2b implements Signer method algorithmId (line 16) | public function algorithmId(): string method sign (line 21) | public function sign(string $payload, Key $key): string method verify (line 32) | public function verify(string $expected, string $payload, Key $key): bool FILE: src/Signer/CannotSignPayload.php class CannotSignPayload (line 9) | final class CannotSignPayload extends InvalidArgumentException implement... method errorHappened (line 11) | public static function errorHappened(string $error): self FILE: src/Signer/Ecdsa.php class Ecdsa (line 11) | abstract readonly class Ecdsa extends OpenSSL method __construct (line 13) | public function __construct( method sign (line 18) | final public function sign(string $payload, Key $key): string method verify (line 26) | final public function verify(string $expected, string $payload, Key $k... method guardAgainstIncompatibleKey (line 36) | final protected function guardAgainstIncompatibleKey(int $type, int $l... method expectedKeyLength (line 57) | abstract public function expectedKeyLength(): int; method pointLength (line 66) | abstract public function pointLength(): int; FILE: src/Signer/Ecdsa/ConversionFailed.php class ConversionFailed (line 9) | final class ConversionFailed extends InvalidArgumentException implements... method invalidLength (line 11) | public static function invalidLength(): self method incorrectStartSequence (line 16) | public static function incorrectStartSequence(): self method integerExpected (line 21) | public static function integerExpected(): self FILE: src/Signer/Ecdsa/MultibyteStringConverter.php class MultibyteStringConverter (line 34) | final readonly class MultibyteStringConverter implements SignatureConverter method toAsn1 (line 44) | public function toAsn1(string $points, int $length): string method octetLength (line 73) | private static function octetLength(string $data): int method preparePositiveInteger (line 78) | private static function preparePositiveInteger(string $data): string method fromAsn1 (line 94) | public function fromAsn1(string $signature, int $length): string method readAsn1Content (line 118) | private static function readAsn1Content(string $message, int &$positio... method readAsn1Integer (line 126) | private static function readAsn1Integer(string $message, int &$positio... method retrievePositiveInteger (line 137) | private static function retrievePositiveInteger(string $data): string FILE: src/Signer/Ecdsa/Sha256.php class Sha256 (line 10) | final readonly class Sha256 extends Ecdsa method algorithmId (line 12) | public function algorithmId(): string method algorithm (line 17) | public function algorithm(): int method pointLength (line 22) | public function pointLength(): int method expectedKeyLength (line 27) | public function expectedKeyLength(): int FILE: src/Signer/Ecdsa/Sha384.php class Sha384 (line 10) | final readonly class Sha384 extends Ecdsa method algorithmId (line 12) | public function algorithmId(): string method algorithm (line 17) | public function algorithm(): int method pointLength (line 22) | public function pointLength(): int method expectedKeyLength (line 27) | public function expectedKeyLength(): int FILE: src/Signer/Ecdsa/Sha512.php class Sha512 (line 10) | final readonly class Sha512 extends Ecdsa method algorithmId (line 12) | public function algorithmId(): string method algorithm (line 17) | public function algorithm(): int method pointLength (line 22) | public function pointLength(): int method expectedKeyLength (line 27) | public function expectedKeyLength(): int FILE: src/Signer/Ecdsa/SignatureConverter.php type SignatureConverter (line 19) | interface SignatureConverter method fromAsn1 (line 28) | public function fromAsn1(string $signature, int $length): string; method toAsn1 (line 39) | public function toAsn1(string $points, int $length): string; FILE: src/Signer/Eddsa.php class Eddsa (line 12) | final readonly class Eddsa implements Signer method algorithmId (line 14) | public function algorithmId(): string method sign (line 19) | public function sign(string $payload, Key $key): string method verify (line 28) | public function verify(string $expected, string $payload, Key $key): bool FILE: src/Signer/Hmac.php class Hmac (line 12) | abstract readonly class Hmac implements Signer method sign (line 14) | final public function sign(string $payload, Key $key): string method verify (line 26) | final public function verify(string $expected, string $payload, Key $k... method algorithm (line 36) | abstract public function algorithm(): string; method minimumBitsLengthForKey (line 43) | abstract public function minimumBitsLengthForKey(): int; FILE: src/Signer/Hmac/Sha256.php class Sha256 (line 8) | final readonly class Sha256 extends Hmac method algorithmId (line 10) | public function algorithmId(): string method algorithm (line 15) | public function algorithm(): string method minimumBitsLengthForKey (line 20) | public function minimumBitsLengthForKey(): int FILE: src/Signer/Hmac/Sha384.php class Sha384 (line 8) | final readonly class Sha384 extends Hmac method algorithmId (line 10) | public function algorithmId(): string method algorithm (line 15) | public function algorithm(): string method minimumBitsLengthForKey (line 20) | public function minimumBitsLengthForKey(): int FILE: src/Signer/Hmac/Sha512.php class Sha512 (line 8) | final readonly class Sha512 extends Hmac method algorithmId (line 10) | public function algorithmId(): string method algorithm (line 15) | public function algorithm(): string method minimumBitsLengthForKey (line 20) | public function minimumBitsLengthForKey(): int FILE: src/Signer/InvalidKeyProvided.php class InvalidKeyProvided (line 9) | final class InvalidKeyProvided extends InvalidArgumentException implemen... method cannotBeParsed (line 11) | public static function cannotBeParsed(string $details): self method incompatibleKeyType (line 20) | public static function incompatibleKeyType(string $expectedType, strin... method incompatibleKeyLength (line 29) | public static function incompatibleKeyLength(int $expectedLength, int ... method cannotBeEmpty (line 37) | public static function cannotBeEmpty(): self method tooShort (line 42) | public static function tooShort(int $expectedLength, int $actualLength... FILE: src/Signer/Key.php type Key (line 6) | interface Key method contents (line 9) | public function contents(): string; method passphrase (line 11) | public function passphrase(): string; FILE: src/Signer/Key/FileCouldNotBeRead.php class FileCouldNotBeRead (line 10) | final class FileCouldNotBeRead extends InvalidArgumentException implemen... method onPath (line 13) | public static function onPath(string $path, ?Throwable $cause = null):... FILE: src/Signer/Key/InMemory.php class InMemory (line 16) | final readonly class InMemory implements Key method __construct (line 19) | private function __construct( method plainText (line 28) | public static function plainText( method base64Encoded (line 40) | public static function base64Encoded( method file (line 61) | public static function file( method guardAgainstEmptyKey (line 82) | private static function guardAgainstEmptyKey(string $contents): void method contents (line 89) | public function contents(): string method passphrase (line 94) | public function passphrase(): string FILE: src/Signer/OpenSSL.php class OpenSSL (line 27) | abstract readonly class OpenSSL implements Signer method createSignature (line 42) | final protected function createSignature( method getPrivateKey (line 58) | private function getPrivateKey( method verifySignature (line 65) | final protected function verifySignature( method getPublicKey (line 77) | private function getPublicKey(Key $key): OpenSSLAsymmetricKey method validateKey (line 87) | private function validateKey(OpenSSLAsymmetricKey|bool $key): OpenSSLA... method fullOpenSSLErrorString (line 106) | private function fullOpenSSLErrorString(): string method guardAgainstIncompatibleKey (line 118) | abstract protected function guardAgainstIncompatibleKey(int $type, int... method algorithm (line 125) | abstract public function algorithm(): int; FILE: src/Signer/Rsa.php class Rsa (line 8) | abstract readonly class Rsa extends OpenSSL method sign (line 12) | final public function sign(string $payload, Key $key): string method verify (line 17) | final public function verify(string $expected, string $payload, Key $k... method guardAgainstIncompatibleKey (line 22) | final protected function guardAgainstIncompatibleKey(int $type, int $l... FILE: src/Signer/Rsa/Sha256.php class Sha256 (line 10) | final readonly class Sha256 extends Rsa method algorithmId (line 12) | public function algorithmId(): string method algorithm (line 17) | public function algorithm(): int FILE: src/Signer/Rsa/Sha384.php class Sha384 (line 10) | final readonly class Sha384 extends Rsa method algorithmId (line 12) | public function algorithmId(): string method algorithm (line 17) | public function algorithm(): int FILE: src/Signer/Rsa/Sha512.php class Sha512 (line 10) | final readonly class Sha512 extends Rsa method algorithmId (line 12) | public function algorithmId(): string method algorithm (line 17) | public function algorithm(): int FILE: src/SodiumBase64Polyfill.php class SodiumBase64Polyfill (line 19) | final readonly class SodiumBase64Polyfill method bin2base64 (line 27) | public static function bin2base64(string $decoded, int $variant): string method bin2base64Fallback (line 37) | public static function bin2base64Fallback(string $decoded, int $varian... method base642bin (line 63) | public static function base642bin(string $encoded, int $variant): string method base642binFallback (line 81) | public static function base642binFallback(string $encoded, int $varian... FILE: src/Token.php type Token (line 11) | interface Token method headers (line 16) | public function headers(): DataSet; method isPermittedFor (line 23) | public function isPermittedFor(string $audience): bool; method isIdentifiedBy (line 30) | public function isIdentifiedBy(string $id): bool; method isRelatedTo (line 37) | public function isRelatedTo(string $subject): bool; method hasBeenIssuedBy (line 44) | public function hasBeenIssuedBy(string ...$issuers): bool; method hasBeenIssuedBefore (line 49) | public function hasBeenIssuedBefore(DateTimeInterface $now): bool; method isMinimumTimeBefore (line 54) | public function isMinimumTimeBefore(DateTimeInterface $now): bool; method isExpired (line 59) | public function isExpired(DateTimeInterface $now): bool; method toString (line 66) | #[NoDiscard] FILE: src/Token/Builder.php class Builder (line 21) | final readonly class Builder implements BuilderInterface method __construct (line 27) | private function __construct( method new (line 35) | #[NoDiscard] method permittedFor (line 41) | public function permittedFor(string ...$audiences): BuilderInterface method expiresAt (line 49) | public function expiresAt(DateTimeImmutable $expiration): BuilderInter... method identifiedBy (line 54) | public function identifiedBy(string $id): BuilderInterface method issuedAt (line 59) | public function issuedAt(DateTimeImmutable $issuedAt): BuilderInterface method issuedBy (line 64) | public function issuedBy(string $issuer): BuilderInterface method canOnlyBeUsedAfter (line 69) | public function canOnlyBeUsedAfter(DateTimeImmutable $notBefore): Buil... method relatedTo (line 74) | public function relatedTo(string $subject): BuilderInterface method withHeader (line 79) | public function withHeader(string $name, mixed $value): BuilderInterface method withClaim (line 92) | public function withClaim(string $name, mixed $value): BuilderInterface method newWithClaim (line 102) | private function newWithClaim(string $name, mixed $value): BuilderInte... method encode (line 120) | private function encode(array $items): string method getToken (line 127) | public function getToken(Signer $signer, Key $key): UnencryptedToken FILE: src/Token/DataSet.php class DataSet (line 8) | final readonly class DataSet method __construct (line 11) | public function __construct(private array $data, private string $encoded) method get (line 16) | public function get(string $name, mixed $default = null): mixed method has (line 22) | public function has(string $name): bool method all (line 28) | public function all(): array method toString (line 33) | public function toString(): string FILE: src/Token/InvalidTokenStructure.php class InvalidTokenStructure (line 9) | final class InvalidTokenStructure extends InvalidArgumentException imple... method missingOrNotEnoughSeparators (line 11) | public static function missingOrNotEnoughSeparators(): self method missingHeaderPart (line 16) | public static function missingHeaderPart(): self method missingClaimsPart (line 21) | public static function missingClaimsPart(): self method missingSignaturePart (line 26) | public static function missingSignaturePart(): self method arrayExpected (line 32) | public static function arrayExpected(string $part): self method dateIsNotParseable (line 37) | public static function dateIsNotParseable(string $value): self FILE: src/Token/Parser.php class Parser (line 18) | final readonly class Parser implements ParserInterface method __construct (line 22) | public function __construct(private Decoder $decoder) method parse (line 26) | public function parse(string $jwt): TokenInterface method splitJwt (line 60) | private function splitJwt(string $jwt): array method parseHeader (line 81) | private function parseHeader(string $data): array method parseClaims (line 111) | private function parseClaims(string $data): array method guardAgainstEmptyStringKeys (line 142) | private function guardAgainstEmptyStringKeys(array $array, string $par... method convertDate (line 152) | private function convertDate(int|float|string $timestamp): DateTimeImm... method parseSignature (line 174) | private function parseSignature(string $data): Signature FILE: src/Token/Plain.php class Plain (line 11) | final readonly class Plain implements UnencryptedToken method __construct (line 13) | public function __construct( method headers (line 20) | public function headers(): DataSet method claims (line 25) | public function claims(): DataSet method signature (line 30) | public function signature(): Signature method payload (line 35) | public function payload(): string method isPermittedFor (line 40) | public function isPermittedFor(string $audience): bool method isIdentifiedBy (line 45) | public function isIdentifiedBy(string $id): bool method isRelatedTo (line 50) | public function isRelatedTo(string $subject): bool method hasBeenIssuedBy (line 55) | public function hasBeenIssuedBy(string ...$issuers): bool method hasBeenIssuedBefore (line 60) | public function hasBeenIssuedBefore(DateTimeInterface $now): bool method isMinimumTimeBefore (line 65) | public function isMinimumTimeBefore(DateTimeInterface $now): bool method isExpired (line 70) | public function isExpired(DateTimeInterface $now): bool method toString (line 79) | public function toString(): string FILE: src/Token/RegisteredClaimGiven.php class RegisteredClaimGiven (line 11) | final class RegisteredClaimGiven extends InvalidArgumentException implem... method forClaim (line 17) | public static function forClaim(string $name): self FILE: src/Token/RegisteredClaims.php type RegisteredClaims (line 11) | interface RegisteredClaims FILE: src/Token/Signature.php class Signature (line 6) | final readonly class Signature method __construct (line 12) | public function __construct(private string $hash, private string $enco... method hash (line 17) | public function hash(): string method toString (line 27) | public function toString(): string FILE: src/Token/UnsupportedHeaderFound.php class UnsupportedHeaderFound (line 9) | final class UnsupportedHeaderFound extends InvalidArgumentException impl... method encryption (line 11) | public static function encryption(): self FILE: src/UnencryptedToken.php type UnencryptedToken (line 9) | interface UnencryptedToken extends Token method claims (line 14) | public function claims(): DataSet; method signature (line 19) | public function signature(): Signature; method payload (line 26) | public function payload(): string; FILE: src/Validation/Constraint.php type Constraint (line 8) | interface Constraint method assert (line 11) | public function assert(Token $token): void; FILE: src/Validation/Constraint/CannotValidateARegisteredClaim.php class CannotValidateARegisteredClaim (line 9) | final class CannotValidateARegisteredClaim extends InvalidArgumentExcept... method create (line 12) | public static function create(string $claim): self FILE: src/Validation/Constraint/HasClaim.php class HasClaim (line 13) | final readonly class HasClaim implements Constraint method __construct (line 16) | public function __construct(private string $claim) method assert (line 23) | public function assert(Token $token): void FILE: src/Validation/Constraint/HasClaimWithValue.php class HasClaimWithValue (line 13) | final readonly class HasClaimWithValue implements Constraint method __construct (line 16) | public function __construct(private string $claim, private mixed $expe... method assert (line 23) | public function assert(Token $token): void FILE: src/Validation/Constraint/IdentifiedBy.php class IdentifiedBy (line 10) | final readonly class IdentifiedBy implements Constraint method __construct (line 13) | public function __construct(private string $id) method assert (line 17) | public function assert(Token $token): void FILE: src/Validation/Constraint/IssuedBy.php class IssuedBy (line 10) | final readonly class IssuedBy implements Constraint method __construct (line 16) | public function __construct(string ...$issuers) method assert (line 21) | public function assert(Token $token): void FILE: src/Validation/Constraint/LeewayCannotBeNegative.php class LeewayCannotBeNegative (line 9) | final class LeewayCannotBeNegative extends InvalidArgumentException impl... method create (line 11) | public static function create(): self FILE: src/Validation/Constraint/LooseValidAt.php class LooseValidAt (line 13) | final readonly class LooseValidAt implements ValidAtInterface method __construct (line 17) | public function __construct(private Clock $clock, ?DateInterval $leewa... method guardLeeway (line 22) | private function guardLeeway(?DateInterval $leeway): DateInterval method assert (line 35) | public function assert(Token $token): void method assertExpiration (line 45) | private function assertExpiration(Token $token, DateTimeInterface $now... method assertMinimumTime (line 53) | private function assertMinimumTime(Token $token, DateTimeInterface $no... method assertIssueTime (line 61) | private function assertIssueTime(Token $token, DateTimeInterface $now)... FILE: src/Validation/Constraint/PermittedFor.php class PermittedFor (line 10) | final readonly class PermittedFor implements Constraint method __construct (line 13) | public function __construct(private string $audience) method assert (line 17) | public function assert(Token $token): void FILE: src/Validation/Constraint/RelatedTo.php class RelatedTo (line 10) | final readonly class RelatedTo implements Constraint method __construct (line 13) | public function __construct(private string $subject) method assert (line 17) | public function assert(Token $token): void FILE: src/Validation/Constraint/SignedWith.php class SignedWith (line 12) | final readonly class SignedWith implements SignedWithInterface method __construct (line 14) | public function __construct(private Signer $signer, private Signer\Key... method assert (line 18) | public function assert(Token $token): void FILE: src/Validation/Constraint/SignedWithOneInSet.php class SignedWithOneInSet (line 12) | final readonly class SignedWithOneInSet implements SignedWithInterface method __construct (line 17) | public function __construct(SignedWithUntilDate ...$constraints) method assert (line 22) | public function assert(Token $token): void FILE: src/Validation/Constraint/SignedWithUntilDate.php class SignedWithUntilDate (line 14) | final readonly class SignedWithUntilDate implements SignedWithInterface method __construct (line 19) | public function __construct( method assert (line 35) | public function assert(Token $token): void FILE: src/Validation/Constraint/StrictValidAt.php class StrictValidAt (line 14) | final readonly class StrictValidAt implements ValidAtInterface method __construct (line 18) | public function __construct(private Clock $clock, ?DateInterval $leewa... method guardLeeway (line 23) | private function guardLeeway(?DateInterval $leeway): DateInterval method assert (line 36) | public function assert(Token $token): void method assertExpiration (line 50) | private function assertExpiration(UnencryptedToken $token, DateTimeInt... method assertMinimumTime (line 62) | private function assertMinimumTime(UnencryptedToken $token, DateTimeIn... method assertIssueTime (line 74) | private function assertIssueTime(UnencryptedToken $token, DateTimeInte... FILE: src/Validation/ConstraintViolation.php class ConstraintViolation (line 9) | final class ConstraintViolation extends RuntimeException implements Exce... method __construct (line 12) | public function __construct( method error (line 20) | public static function error(string $message, Constraint $constraint):... FILE: src/Validation/NoConstraintsGiven.php class NoConstraintsGiven (line 9) | final class NoConstraintsGiven extends RuntimeException implements Excep... FILE: src/Validation/RequiredConstraintsViolated.php class RequiredConstraintsViolated (line 12) | final class RequiredConstraintsViolated extends RuntimeException impleme... method __construct (line 15) | public function __construct( method fromViolations (line 22) | public static function fromViolations(ConstraintViolation ...$violatio... method buildMessage (line 28) | private static function buildMessage(array $violations): string method violations (line 44) | public function violations(): array FILE: src/Validation/SignedWith.php type SignedWith (line 6) | interface SignedWith extends Constraint FILE: src/Validation/ValidAt.php type ValidAt (line 6) | interface ValidAt extends Constraint FILE: src/Validation/Validator.php class Validator (line 8) | final readonly class Validator implements \Lcobucci\JWT\Validator method assert (line 10) | public function assert(Token $token, Constraint ...$constraints): void method checkConstraint (line 28) | private function checkConstraint( method validate (line 40) | public function validate(Token $token, Constraint ...$constraints): bool FILE: src/Validator.php type Validator (line 11) | interface Validator method assert (line 17) | public function assert(Token $token, Constraint ...$constraints): void; method validate (line 20) | #[NoDiscard] FILE: tests/Benchmark/AlgorithmsBench.php class AlgorithmsBench (line 12) | #[Bench\Iterations(5)] method hmac (line 29) | #[Bench\Subject] method hmacAlgorithms (line 38) | public function hmacAlgorithms(): iterable method rsa (line 43) | #[Bench\Subject] method rsaAlgorithms (line 52) | public function rsaAlgorithms(): iterable method ecdsa (line 57) | #[Bench\Subject] method ecdsaAlgorithms (line 66) | public function ecdsaAlgorithms(): iterable method eddsa (line 71) | #[Bench\Subject] method eddsaAlgorithms (line 80) | public function eddsaAlgorithms(): iterable method blake2b (line 85) | #[Bench\Subject] method blake2bAlgorithms (line 94) | public function blake2bAlgorithms(): iterable method runBenchmark (line 99) | abstract protected function runBenchmark(): void; method resolveAlgorithm (line 101) | protected function resolveAlgorithm(string $name): Signer method resolveSigningKey (line 119) | protected function resolveSigningKey(string $name): Key method resolveVerificationKey (line 139) | protected function resolveVerificationKey(string $name): Key method iterateAlgorithms (line 153) | private function iterateAlgorithms(string $family): iterable FILE: tests/Benchmark/CreateSignatureBench.php class CreateSignatureBench (line 10) | #[Bench\BeforeMethods('initialize')] method initialize (line 17) | public function initialize(array $params): void method runBenchmark (line 23) | protected function runBenchmark(): void FILE: tests/Benchmark/IssueTokenBench.php class IssueTokenBench (line 12) | #[Bench\BeforeMethods('initialize')] method initialize (line 19) | public function initialize(array $params): void method runBenchmark (line 25) | protected function runBenchmark(): void FILE: tests/Benchmark/ParseTokenBench.php class ParseTokenBench (line 14) | #[Bench\BeforeMethods('initialize')] method initialize (line 23) | public function initialize(array $params): void method runBenchmark (line 39) | protected function runBenchmark(): void FILE: tests/Benchmark/VerifySignatureBench.php class VerifySignatureBench (line 10) | #[Bench\BeforeMethods('initialize')] method initialize (line 19) | public function initialize(array $params): void method runBenchmark (line 30) | protected function runBenchmark(): void FILE: tests/ConfigurationTest.php class ConfigurationTest (line 24) | #[PHPUnit\CoversClass(Configuration::class)] method createDependencies (line 39) | #[PHPUnit\Before] method forAsymmetricSignerShouldConfigureSignerAndBothKeys (line 50) | #[PHPUnit\Test] method forSymmetricSignerShouldConfigureSignerAndBothKeys (line 63) | #[PHPUnit\Test] method builderShouldCreateABuilderWithDefaultEncoderAndClaimFactory (line 74) | #[PHPUnit\Test] method builderShouldCreateABuilderWithCustomizedEncoderAndClaimFactory (line 88) | #[PHPUnit\Test] method builderShouldUseBuilderFactoryWhenThatIsConfigured (line 102) | #[PHPUnit\Test] method parserShouldReturnAParserWithDefaultDecoder (line 120) | #[PHPUnit\Test] method parserShouldReturnAParserWithCustomizedDecoder (line 132) | #[PHPUnit\Test] method parserShouldNotCreateAnInstanceIfItWasConfigured (line 145) | #[PHPUnit\Test] method validatorShouldReturnTheDefaultWhenItWasNotConfigured (line 158) | #[PHPUnit\Test] method validatorShouldReturnTheConfiguredValidator (line 170) | #[PHPUnit\Test] method validationConstraintsShouldReturnAnEmptyArrayWhenItWasNotConfigured (line 183) | #[PHPUnit\Test] method validationConstraintsShouldReturnTheConfiguredValidator (line 194) | #[PHPUnit\Test] method customClaimFormatterCanBeUsed (line 207) | #[PHPUnit\Test] FILE: tests/ES512TokenTest.php class ES512TokenTest (line 28) | #[PHPUnit\CoversClass(Configuration::class)] method createConfiguration (line 56) | #[PHPUnit\Before] method builderShouldRaiseExceptionWhenKeyIsInvalid (line 66) | #[PHPUnit\Test] method builderShouldRaiseExceptionWhenKeyIsNotEcdsaCompatible (line 81) | #[PHPUnit\Test] method builderCanGenerateAToken (line 96) | #[PHPUnit\Test] method parserCanReadAToken (line 122) | #[PHPUnit\Test] method signatureAssertionShouldRaiseExceptionWhenKeyIsNotRight (line 133) | #[PHPUnit\Test] method signatureAssertionShouldRaiseExceptionWhenAlgorithmIsDifferent (line 149) | #[PHPUnit\Test] method signatureAssertionShouldRaiseExceptionWhenKeyIsNotEcdsaCompatible (line 165) | #[PHPUnit\Test] method signatureValidationShouldSucceedWhenKeyIsRight (line 178) | #[PHPUnit\Test] FILE: tests/EcdsaTokenTest.php class EcdsaTokenTest (line 31) | #[PHPUnit\CoversClass(Configuration::class)] method createConfiguration (line 59) | #[PHPUnit\Before] method builderShouldRaiseExceptionWhenKeyIsInvalid (line 69) | #[PHPUnit\Test] method builderShouldRaiseExceptionWhenKeyIsNotEcdsaCompatible (line 84) | #[PHPUnit\Test] method builderCanGenerateAToken (line 99) | #[PHPUnit\Test] method parserCanReadAToken (line 125) | #[PHPUnit\Test] method signatureAssertionShouldRaiseExceptionWhenKeyIsNotRight (line 136) | #[PHPUnit\Test] method signatureAssertionShouldRaiseExceptionWhenAlgorithmIsDifferent (line 152) | #[PHPUnit\Test] method signatureAssertionShouldRaiseExceptionWhenKeyIsNotEcdsaCompatible (line 168) | #[PHPUnit\Test] method signatureValidationShouldSucceedWhenKeyIsRight (line 181) | #[PHPUnit\Test] method everythingShouldWorkWithAKeyWithParams (line 193) | #[PHPUnit\Test] method everythingShouldWorkWhenUsingATokenGeneratedByOtherLibs (line 214) | #[PHPUnit\Test] FILE: tests/EddsaTokenTest.php class EddsaTokenTest (line 26) | #[PHPUnit\CoversClass(Configuration::class)] method createConfiguration (line 51) | #[PHPUnit\Before] method builderShouldRaiseExceptionWhenKeyIsInvalid (line 61) | #[PHPUnit\Test] method builderCanGenerateAToken (line 76) | #[PHPUnit\Test] method parserCanReadAToken (line 102) | #[PHPUnit\Test] method signatureAssertionShouldRaiseExceptionWhenKeyIsNotRight (line 113) | #[PHPUnit\Test] method signatureValidationShouldSucceedWhenKeyIsRight (line 129) | #[PHPUnit\Test] FILE: tests/Encoding/ChainedFormatterTest.php class ChainedFormatterTest (line 15) | #[PHPUnit\CoversClass(ChainedFormatter::class)] method formatClaimsShouldApplyAllConfiguredFormatters (line 21) | #[PHPUnit\Test] FILE: tests/Encoding/JoseEncoderTest.php class JoseEncoderTest (line 17) | #[PHPUnit\CoversClass(JoseEncoder::class)] method jsonEncodeMustReturnAJSONString (line 23) | #[PHPUnit\Test] method jsonEncodeShouldNotEscapeUnicode (line 31) | #[PHPUnit\Test] method jsonEncodeShouldNotEscapeSlashes (line 39) | #[PHPUnit\Test] method jsonEncodeMustRaiseExceptionWhenAnErrorHasOccurred (line 47) | #[PHPUnit\Test] method jsonDecodeMustReturnTheDecodedData (line 59) | #[PHPUnit\Test] method jsonDecodeMustRaiseExceptionWhenAnErrorHasOccurred (line 70) | #[PHPUnit\Test] method base64UrlEncodeMustReturnAUrlSafeBase64 (line 82) | #[PHPUnit\Test] method base64UrlEncodeMustEncodeBilboMessageProperly (line 92) | #[PHPUnit\Test] method base64UrlDecodeMustRaiseExceptionWhenInvalidBase64CharsAreUsed (line 109) | #[PHPUnit\Test] method base64UrlDecodeMustReturnTheRightData (line 121) | #[PHPUnit\Test] method base64UrlDecodeMustDecodeBilboMessageProperly (line 130) | #[PHPUnit\Test] FILE: tests/Encoding/MicrosecondBasedDateConversionTest.php class MicrosecondBasedDateConversionTest (line 12) | #[PHPUnit\CoversClass(MicrosecondBasedDateConversion::class)] method dateClaimsHaveMicrosecondsOrSeconds (line 15) | #[PHPUnit\Test] method notAllDateClaimsNeedToBeConfigured (line 41) | #[PHPUnit\Test] FILE: tests/Encoding/UnifyAudienceTest.php class UnifyAudienceTest (line 11) | #[PHPUnit\CoversClass(UnifyAudience::class)] method nothingShouldBeDoneWhenAudienceIsNotSet (line 14) | #[PHPUnit\Test] method audienceShouldBeFormattedAsSingleStringWhenOneValueIsUsed (line 25) | #[PHPUnit\Test] method audienceShouldBeFormattedAsArrayWhenMultipleValuesAreUsed (line 40) | #[PHPUnit\Test] FILE: tests/Encoding/UnixTimestampDatesTest.php class UnixTimestampDatesTest (line 12) | #[PHPUnit\CoversClass(UnixTimestampDates::class)] method dateClaimsHaveMicrosecondsOrSeconds (line 15) | #[PHPUnit\Test] method notAllDateClaimsNeedToBeConfigured (line 41) | #[PHPUnit\Test] FILE: tests/HmacTokenTest.php class HmacTokenTest (line 31) | #[PHPUnit\CoversClass(Configuration::class)] method createConfiguration (line 56) | #[PHPUnit\Before] method builderCanGenerateAToken (line 65) | #[PHPUnit\Test] method parserCanReadAToken (line 86) | #[PHPUnit\Test] method signatureAssertionShouldRaiseExceptionWhenKeyIsNotRight (line 97) | #[PHPUnit\Test] method signatureAssertionShouldRaiseExceptionWhenAlgorithmIsDifferent (line 113) | #[PHPUnit\Test] method signatureValidationShouldSucceedWhenKeyIsRight (line 126) | #[PHPUnit\Test] method everythingShouldWorkWhenUsingATokenGeneratedByOtherLibs (line 135) | #[PHPUnit\Test] method signatureValidationWithLocalFileKeyReferenceWillOperateWithKeyContents (line 154) | #[PHPUnit\Test] FILE: tests/JwtFacadeTest.php class JwtFacadeTest (line 24) | #[PHPUnit\CoversClass(JwtFacade::class)] method configureDependencies (line 55) | #[PHPUnit\Before] method createToken (line 65) | private function createToken(): string method issueSetTimeValidity (line 76) | #[PHPUnit\Test] method issueAllowsTimeValidityOverwrite (line 104) | #[PHPUnit\Test] method goodJwt (line 138) | #[PHPUnit\Test] method badSigner (line 151) | #[PHPUnit\Test] method badKey (line 165) | #[PHPUnit\Test] method badTime (line 182) | #[PHPUnit\Test] method badIssuer (line 199) | #[PHPUnit\Test] method parserForNonUnencryptedTokens (line 213) | #[PHPUnit\Test] method customPsrClock (line 226) | #[PHPUnit\Test] method multipleKeys (line 254) | #[PHPUnit\Test] FILE: tests/KeyDumpSigner.php class KeyDumpSigner (line 9) | final readonly class KeyDumpSigner implements Signer method algorithmId (line 11) | public function algorithmId(): string method sign (line 17) | public function sign(string $payload, Key $key): string method verify (line 23) | public function verify(string $expected, string $payload, Key $key): bool FILE: tests/Keys.php type Keys (line 9) | trait Keys method createRsaKeys (line 20) | #[PHPUnit\BeforeClass] method createEcdsaKeys (line 37) | #[PHPUnit\BeforeClass] method createEddsaKeys (line 58) | #[PHPUnit\BeforeClass] FILE: tests/MaliciousTamperingPreventionTest.php class MaliciousTamperingPreventionTest (line 30) | #[PHPUnit\CoversClass(Configuration::class)] method createConfiguration (line 50) | #[PHPUnit\Before] method preventRegressionsThatAllowsMaliciousTampering (line 67) | #[PHPUnit\Test] method createMaliciousToken (line 110) | private function createMaliciousToken(string $token): string FILE: tests/RFC6978VectorTest.php class RFC6978VectorTest (line 20) | #[PHPUnit\CoversClass(InMemory::class)] method theVectorsFromRFC6978CanBeVerified (line 36) | #[PHPUnit\Test] method dataRFC6979 (line 53) | public static function dataRFC6979(): iterable method sha256Data (line 61) | public static function sha256Data(): iterable method sha384Data (line 89) | public static function sha384Data(): iterable method sha512Data (line 118) | public static function sha512Data(): iterable FILE: tests/RsaTokenTest.php class RsaTokenTest (line 25) | #[PHPUnit\CoversClass(Configuration::class)] method createConfiguration (line 52) | #[PHPUnit\Before] method builderShouldRaiseExceptionWhenKeyIsInvalid (line 62) | #[PHPUnit\Test] method builderShouldRaiseExceptionWhenKeyIsNotRsaCompatible (line 77) | #[PHPUnit\Test] method builderCanGenerateAToken (line 92) | #[PHPUnit\Test] method parserCanReadAToken (line 113) | #[PHPUnit\Test] method signatureAssertionShouldRaiseExceptionWhenKeyIsNotRight (line 124) | #[PHPUnit\Test] method signatureAssertionShouldRaiseExceptionWhenAlgorithmIsDifferent (line 137) | #[PHPUnit\Test] method signatureAssertionShouldRaiseExceptionWhenKeyIsNotRsaCompatible (line 150) | #[PHPUnit\Test] method signatureValidationShouldSucceedWhenKeyIsRight (line 166) | #[PHPUnit\Test] method everythingShouldWorkWhenUsingATokenGeneratedByOtherLibs (line 175) | #[PHPUnit\Test] FILE: tests/Signer/Blake2bTest.php class Blake2bTest (line 15) | #[PHPUnit\CoversClass(Blake2b::class)] method initializeKey (line 33) | #[PHPUnit\Before] method algorithmIdMustBeCorrect (line 45) | #[PHPUnit\Test] method generatedSignatureMustBeSuccessfullyVerified (line 53) | #[PHPUnit\Test] method signShouldRejectShortKeys (line 62) | #[PHPUnit\Test] method verifyShouldReturnFalseWhenExpectedHashWasNotCreatedWithSameInformation (line 73) | #[PHPUnit\Test] FILE: tests/Signer/Ecdsa/EcdsaTestCase.php class EcdsaTestCase (line 22) | abstract class EcdsaTestCase extends TestCase method clearOpenSSLErrors (line 28) | #[PHPUnit\After] method createDependencies (line 36) | #[PHPUnit\Before] method algorithm (line 42) | abstract protected function algorithm(): Ecdsa; method algorithmId (line 44) | abstract protected function algorithmId(): string; method signatureAlgorithm (line 46) | abstract protected function signatureAlgorithm(): int; method pointLength (line 48) | abstract protected function pointLength(): int; method keyLength (line 50) | abstract protected function keyLength(): int; method verificationKey (line 52) | abstract protected function verificationKey(): Key; method signingKey (line 54) | abstract protected function signingKey(): Key; method algorithmIdMustBeCorrect (line 56) | #[PHPUnit\Test] method signatureAlgorithmMustBeCorrect (line 62) | #[PHPUnit\Test] method pointLengthMustBeCorrect (line 68) | #[PHPUnit\Test] method expectedKeyLengthMustBeCorrect (line 74) | #[PHPUnit\Test] method signShouldReturnTheAHashBasedOnTheOpenSslSignature (line 80) | #[PHPUnit\Test] method signShouldRaiseAnExceptionWhenKeyLengthIsNotTheExpectedOne (line 102) | #[PHPUnit\Test] method incompatibleKeys (line 120) | abstract public static function incompatibleKeys(): iterable; method signShouldRaiseAnExceptionWhenKeyTypeIsNotEC (line 122) | #[PHPUnit\Test] method verifyShouldDelegateToEcdsaSignerUsingPublicKey (line 131) | #[PHPUnit\Test] FILE: tests/Signer/Ecdsa/MultibyteStringConverterTest.php class MultibyteStringConverterTest (line 16) | #[PHPUnit\CoversClass(MultibyteStringConverter::class)] method toAsn1ShouldReturnThePointsInAnAsn1SequenceFormat (line 25) | #[PHPUnit\Test] method toAsn1ShouldRaiseExceptionWhenPointsDoNotHaveCorrectLength (line 40) | #[PHPUnit\Test] method fromAsn1ShouldReturnTheConcatenatedPoints (line 50) | #[PHPUnit\Test] method pointsConversionData (line 63) | public static function pointsConversionData(): iterable method fromAsn1ShouldRaiseExceptionOnInvalidMessage (line 91) | #[PHPUnit\Test] method invalidAsn1Structures (line 105) | public static function invalidAsn1Structures(): iterable FILE: tests/Signer/Ecdsa/Sha256Test.php class Sha256Test (line 15) | #[PHPUnit\CoversClass(Ecdsa::class)] method algorithm (line 23) | protected function algorithm(): Ecdsa method algorithmId (line 28) | protected function algorithmId(): string method signatureAlgorithm (line 33) | protected function signatureAlgorithm(): int method pointLength (line 38) | protected function pointLength(): int method keyLength (line 43) | protected function keyLength(): int method verificationKey (line 48) | protected function verificationKey(): Key method signingKey (line 53) | protected function signingKey(): Key method incompatibleKeys (line 59) | public static function incompatibleKeys(): iterable FILE: tests/Signer/Ecdsa/Sha384Test.php class Sha384Test (line 15) | #[PHPUnit\CoversClass(Ecdsa::class)] method algorithm (line 23) | protected function algorithm(): Ecdsa method algorithmId (line 28) | protected function algorithmId(): string method signatureAlgorithm (line 33) | protected function signatureAlgorithm(): int method pointLength (line 38) | protected function pointLength(): int method keyLength (line 43) | protected function keyLength(): int method verificationKey (line 48) | protected function verificationKey(): Key method signingKey (line 53) | protected function signingKey(): Key method incompatibleKeys (line 59) | public static function incompatibleKeys(): iterable FILE: tests/Signer/Ecdsa/Sha512Test.php class Sha512Test (line 15) | #[PHPUnit\CoversClass(Ecdsa::class)] method algorithm (line 23) | protected function algorithm(): Ecdsa method algorithmId (line 28) | protected function algorithmId(): string method signatureAlgorithm (line 33) | protected function signatureAlgorithm(): int method pointLength (line 38) | protected function pointLength(): int method keyLength (line 43) | protected function keyLength(): int method verificationKey (line 48) | protected function verificationKey(): Key method signingKey (line 53) | protected function signingKey(): Key method incompatibleKeys (line 59) | public static function incompatibleKeys(): iterable FILE: tests/Signer/EddsaTest.php class EddsaTest (line 18) | #[PHPUnit\CoversClass(Eddsa::class)] method algorithmIdMustBeCorrect (line 26) | #[PHPUnit\Test] method signShouldReturnAValidEddsaSignature (line 32) | #[PHPUnit\Test] method signShouldRaiseAnExceptionWhenKeyIsInvalid (line 45) | #[PHPUnit\Test] method verifyShouldReturnTrueWhenSignatureIsValid (line 57) | #[PHPUnit\Test] method verifyShouldRaiseAnExceptionWhenKeyIsNotParseable (line 67) | #[PHPUnit\Test] method signatureOfRfcExample (line 80) | #[PHPUnit\Test] method verificationOfRfcExample (line 104) | #[PHPUnit\Test] FILE: tests/Signer/FakeSigner.php class FakeSigner (line 9) | final class FakeSigner implements Signer method __construct (line 12) | public function __construct(private readonly string $signature) method algorithmId (line 16) | public function algorithmId(): string method sign (line 21) | public function sign(string $payload, Key $key): string method verify (line 26) | public function verify(string $expected, string $payload, Key $key): bool FILE: tests/Signer/Hmac/HmacTestCase.php class HmacTestCase (line 20) | abstract class HmacTestCase extends TestCase method algorithm (line 22) | abstract protected function algorithm(): Hmac; method hashAlgorithm (line 24) | abstract protected function hashAlgorithm(): string; method expectedAlgorithmId (line 26) | abstract protected function expectedAlgorithmId(): string; method expectedMinimumBits (line 28) | abstract protected function expectedMinimumBits(): int; method algorithmIdMustBeCorrect (line 30) | #[PHPUnit\Test] method signMustReturnAHashAccordingWithTheAlgorithm (line 36) | #[PHPUnit\Test] method verifyMustReturnTrueWhenContentWasSignedWithTheSameKey (line 47) | #[PHPUnit\Test] method verifyMustReturnTrueWhenContentWasSignedWithADifferentKey (line 57) | #[PHPUnit\Test] method keyMustFulfillMinimumLengthRequirement (line 76) | #[PHPUnit\Test] method generateSecret (line 94) | private function generateSecret(?int $length = null): string FILE: tests/Signer/Hmac/Sha256Test.php class Sha256Test (line 12) | #[PHPUnit\CoversClass(Hmac::class)] method algorithm (line 18) | protected function algorithm(): Hmac method expectedAlgorithmId (line 23) | protected function expectedAlgorithmId(): string method expectedMinimumBits (line 28) | protected function expectedMinimumBits(): int method hashAlgorithm (line 33) | protected function hashAlgorithm(): string FILE: tests/Signer/Hmac/Sha384Test.php class Sha384Test (line 12) | #[PHPUnit\CoversClass(Hmac::class)] method algorithm (line 18) | protected function algorithm(): Hmac method expectedAlgorithmId (line 23) | protected function expectedAlgorithmId(): string method expectedMinimumBits (line 28) | protected function expectedMinimumBits(): int method hashAlgorithm (line 33) | protected function hashAlgorithm(): string FILE: tests/Signer/Hmac/Sha512Test.php class Sha512Test (line 12) | #[PHPUnit\CoversClass(Hmac::class)] method algorithm (line 18) | protected function algorithm(): Hmac method expectedAlgorithmId (line 23) | protected function expectedAlgorithmId(): string method expectedMinimumBits (line 28) | protected function expectedMinimumBits(): int method hashAlgorithm (line 33) | protected function hashAlgorithm(): string FILE: tests/Signer/Key/InMemoryTest.php class InMemoryTest (line 16) | #[PHPUnit\CoversClass(CannotDecodeContent::class)] method exceptionShouldBeRaisedWhenInvalidBase64CharsAreUsed (line 23) | #[PHPUnit\Test] method base64EncodedShouldDecodeKeyContents (line 32) | #[PHPUnit\Test] method exceptionShouldBeRaisedWhenFileDoesNotExists (line 40) | #[PHPUnit\Test] method exceptionShouldBeRaisedWhenFileIsEmpty (line 52) | #[PHPUnit\Test] method contentsShouldReturnConfiguredData (line 61) | #[PHPUnit\Test] method contentsShouldReturnFileContentsWhenFilePathHasBeenPassed (line 69) | #[PHPUnit\Test] method passphraseShouldReturnConfiguredData (line 77) | #[PHPUnit\Test] method emptyPlainTextContentShouldRaiseException (line 85) | #[PHPUnit\Test] method emptyBase64ContentShouldRaiseException (line 94) | #[PHPUnit\Test] FILE: tests/Signer/Rsa/KeyValidationSigner.php class KeyValidationSigner (line 11) | final readonly class KeyValidationSigner extends OpenSSL method guardAgainstIncompatibleKey (line 14) | protected function guardAgainstIncompatibleKey(int $type, int $lengthI... method algorithm (line 18) | public function algorithm(): int method algorithmId (line 23) | public function algorithmId(): string method sign (line 28) | public function sign(string $payload, Key $key): string method verify (line 33) | public function verify(string $expected, string $payload, Key $key): bool FILE: tests/Signer/Rsa/KeyValidationTest.php class KeyValidationTest (line 16) | #[PHPUnit\CoversClass(OpenSSL::class)] method clearOpenSSLErrors (line 21) | #[PHPUnit\After] method signShouldRaiseAnExceptionWhenKeyIsInvalid (line 29) | #[PHPUnit\Test] method algorithm (line 46) | private function algorithm(): OpenSSL FILE: tests/Signer/Rsa/RsaTestCase.php class RsaTestCase (line 23) | abstract class RsaTestCase extends TestCase method algorithm (line 27) | abstract protected function algorithm(): Rsa; method algorithmId (line 29) | abstract protected function algorithmId(): string; method signatureAlgorithm (line 31) | abstract protected function signatureAlgorithm(): int; method clearOpenSSLErrors (line 33) | #[PHPUnit\After] method algorithmIdMustBeCorrect (line 41) | #[PHPUnit\Test] method signatureAlgorithmMustBeCorrect (line 47) | #[PHPUnit\Test] method signShouldReturnAValidOpensslSignature (line 53) | #[PHPUnit\Test] method signShouldRaiseAnExceptionWhenKeyIsNotParseable (line 68) | #[PHPUnit\Test] method allOpenSSLErrorsShouldBeOnTheErrorMessage (line 77) | #[PHPUnit\Test] method signShouldRaiseAnExceptionWhenKeyTypeIsNotRsa (line 89) | #[PHPUnit\Test] method signShouldRaiseAnExceptionWhenKeyLengthIsBelowMinimum (line 98) | #[PHPUnit\Test] method verifyShouldReturnTrueWhenSignatureIsValid (line 107) | #[PHPUnit\Test] method verifyShouldRaiseAnExceptionWhenKeyIsNotParseable (line 120) | #[PHPUnit\Test] method verifyShouldRaiseAnExceptionWhenKeyTypeIsNotRsa (line 129) | #[PHPUnit\Test] FILE: tests/Signer/Rsa/Sha256Test.php class Sha256Test (line 15) | #[PHPUnit\CoversClass(Sha256::class)] method algorithm (line 22) | protected function algorithm(): Rsa method algorithmId (line 27) | protected function algorithmId(): string method signatureAlgorithm (line 32) | protected function signatureAlgorithm(): int FILE: tests/Signer/Rsa/Sha384Test.php class Sha384Test (line 15) | #[PHPUnit\CoversClass(Sha384::class)] method algorithm (line 22) | protected function algorithm(): Rsa method algorithmId (line 27) | protected function algorithmId(): string method signatureAlgorithm (line 32) | protected function signatureAlgorithm(): int FILE: tests/Signer/Rsa/Sha512Test.php class Sha512Test (line 15) | #[PHPUnit\CoversClass(Rsa::class)] method algorithm (line 22) | protected function algorithm(): Rsa method algorithmId (line 27) | protected function algorithmId(): string method signatureAlgorithm (line 32) | protected function signatureAlgorithm(): int FILE: tests/SodiumBase64PolyfillTest.php class SodiumBase64PolyfillTest (line 19) | #[PHPUnit\CoversClass(SodiumBase64Polyfill::class)] method constantsMatchExtensionOnes (line 26) | #[PHPUnit\Test] method bin2base64 (line 51) | #[PHPUnit\Test] method base642binFallback (line 59) | #[PHPUnit\Test] method base64Variants (line 68) | public static function base64Variants(): iterable method sodiumBase642BinRaisesExceptionOnInvalidBase64 (line 81) | #[PHPUnit\Test] method fallbackBase642BinRaisesExceptionOnInvalidBase64 (line 90) | #[PHPUnit\Test] method invalidBase64 (line 100) | public static function invalidBase64(): iterable FILE: tests/TimeFractionPrecisionTest.php class TimeFractionPrecisionTest (line 16) | #[PHPUnit\CoversClass(Configuration::class)] method timeFractionsPrecisionsAreRespected (line 30) | #[PHPUnit\Test] method datesWithPotentialRoundingIssues (line 55) | public static function datesWithPotentialRoundingIssues(): iterable method typeConversionDoesNotCauseParsingErrors (line 63) | #[PHPUnit\Test] method timeFractionConversions (line 82) | public static function timeFractionConversions(): iterable FILE: tests/Token/BuilderTest.php class BuilderTest (line 22) | #[PHPUnit\CoversClass(Builder::class)] method initializeDependencies (line 34) | #[PHPUnit\Before] method withClaimShouldRaiseExceptionWhenTryingToConfigureARegisteredClaim (line 42) | #[PHPUnit\Test] method getTokenShouldReturnACompletelyConfigureToken (line 59) | #[PHPUnit\Test] method immutability (line 110) | #[PHPUnit\Test] FILE: tests/Token/DataSetTest.php class DataSetTest (line 10) | #[PHPUnit\CoversClass(DataSet::class)] method getShouldReturnTheConfiguredValue (line 13) | #[PHPUnit\Test] method getShouldReturnTheFallbackValueWhenItWasGiven (line 21) | #[PHPUnit\Test] method getShouldReturnNullWhenFallbackValueWasNotGiven (line 29) | #[PHPUnit\Test] method hasShouldReturnTrueWhenItemWasConfigured (line 37) | #[PHPUnit\Test] method hasShouldReturnFalseWhenItemWasNotConfigured (line 45) | #[PHPUnit\Test] method allShouldReturnAllConfiguredItems (line 53) | #[PHPUnit\Test] method toStringShouldReturnTheEncodedData (line 62) | #[PHPUnit\Test] FILE: tests/Token/ParserTest.php class ParserTest (line 20) | #[PHPUnit\CoversClass(Parser::class)] method createDependencies (line 30) | #[PHPUnit\Before] method createParser (line 36) | private function createParser(): Parser method parseMustRaiseExceptionWhenTokenDoesNotHaveThreeParts (line 41) | #[PHPUnit\Test] method parseMustRaiseExceptionWhenTokenDoesNotHaveHeaders (line 54) | #[PHPUnit\Test] method parseMustRaiseExceptionWhenTokenDoesNotHaveClaims (line 67) | #[PHPUnit\Test] method parseMustRaiseExceptionWhenTokenDoesNotHaveSignature (line 80) | #[PHPUnit\Test] method parseMustRaiseExceptionWhenHeaderCannotBeDecoded (line 93) | #[PHPUnit\Test] method parseMustRaiseExceptionWhenDealingWithNonArrayHeaders (line 116) | #[PHPUnit\Test] method parseMustRaiseExceptionWhenDealingWithHeadersThatHaveEmptyStringKeys (line 131) | #[PHPUnit\Test] method parseMustRaiseExceptionWhenHeaderIsFromAnEncryptedToken (line 146) | #[PHPUnit\Test] method parseMustRaiseExceptionWhenDealingWithNonArrayClaims (line 161) | #[PHPUnit\Test] method parseMustRaiseExceptionWhenDealingWithClaimsThatHaveEmptyStringKeys (line 176) | #[PHPUnit\Test] method parseMustReturnAnUnsecuredTokenWhenSignatureIsNotInformed (line 191) | #[PHPUnit\Test] method parseMustConfigureTypeToJWTWhenItIsMissing (line 223) | #[PHPUnit\Test] method parseMustNotChangeTypeWhenItIsConfigured (line 255) | #[PHPUnit\Test] method parseShouldReplicateClaimValueOnHeaderWhenNeeded (line 287) | #[PHPUnit\Test] method parseMustReturnANonSignedTokenWhenSignatureAlgorithmIsMissing (line 319) | #[PHPUnit\Test] method parseMustReturnANonSignedTokenWhenSignatureAlgorithmIsNone (line 351) | #[PHPUnit\Test] method parseMustReturnASignedTokenWhenSignatureIsInformed (line 383) | #[PHPUnit\Test] method parseMustConvertDateClaimsToObjects (line 415) | #[PHPUnit\Test] method parseMustConvertStringDates (line 454) | #[PHPUnit\Test] method parseShouldRaiseExceptionOnInvalidDate (line 485) | #[PHPUnit\Test] method parseShouldRaiseExceptionOnTimestampBeyondDateTimeImmutableRange (line 509) | #[PHPUnit\Test] FILE: tests/Token/PlainTest.php class PlainTest (line 14) | #[PHPUnit\CoversClass(Plain::class)] method createDependencies (line 23) | #[PHPUnit\Before] method createToken (line 31) | private function createToken( method signedShouldCreateATokenWithSignature (line 43) | #[PHPUnit\Test] method payloadShouldReturnAStringWithTheEncodedHeadersAndClaims (line 53) | #[PHPUnit\Test] method isPermittedForShouldReturnFalseWhenNoAudienceIsConfigured (line 61) | #[PHPUnit\Test] method isPermittedForShouldReturnFalseWhenAudienceDoesNotMatchAsArray (line 69) | #[PHPUnit\Test] method isPermittedForShouldReturnFalseWhenAudienceTypeDoesNotMatch (line 80) | #[PHPUnit\Test] method isPermittedForShouldReturnTrueWhenAudienceMatchesAsArray (line 91) | #[PHPUnit\Test] method isIdentifiedByShouldReturnFalseWhenNoIdWasConfigured (line 102) | #[PHPUnit\Test] method isIdentifiedByShouldReturnFalseWhenIdDoesNotMatch (line 110) | #[PHPUnit\Test] method isIdentifiedByShouldReturnTrueWhenIdMatches (line 121) | #[PHPUnit\Test] method isRelatedToShouldReturnFalseWhenNoSubjectWasConfigured (line 132) | #[PHPUnit\Test] method isRelatedToShouldReturnFalseWhenSubjectDoesNotMatch (line 140) | #[PHPUnit\Test] method isRelatedToShouldReturnTrueWhenSubjectMatches (line 151) | #[PHPUnit\Test] method hasBeenIssuedByShouldReturnFalseWhenIssuerIsNotConfigured (line 162) | #[PHPUnit\Test] method hasBeenIssuedByShouldReturnFalseWhenIssuerTypeDoesNotMatches (line 170) | #[PHPUnit\Test] method hasBeenIssuedByShouldReturnFalseWhenIssuerIsNotInTheGivenList (line 181) | #[PHPUnit\Test] method hasBeenIssuedByShouldReturnTrueWhenIssuerIsInTheGivenList (line 192) | #[PHPUnit\Test] method hasBeenIssuedBeforeShouldReturnTrueWhenIssueTimeIsNotConfigured (line 203) | #[PHPUnit\Test] method hasBeenIssuedBeforeShouldReturnTrueWhenIssueTimeIsBeforeThanNow (line 211) | #[PHPUnit\Test] method hasBeenIssuedBeforeShouldReturnTrueWhenIssueTimeIsEqualsToNow (line 223) | #[PHPUnit\Test] method hasBeenIssuedBeforeShouldReturnFalseWhenIssueTimeIsGreaterThanNow (line 235) | #[PHPUnit\Test] method isMinimumTimeBeforeShouldReturnTrueWhenIssueTimeIsNotConfigured (line 247) | #[PHPUnit\Test] method isMinimumTimeBeforeShouldReturnTrueWhenNotBeforeClaimIsBeforeThanNow (line 255) | #[PHPUnit\Test] method isMinimumTimeBeforeShouldReturnTrueWhenNotBeforeClaimIsEqualsToNow (line 267) | #[PHPUnit\Test] method isMinimumTimeBeforeShouldReturnFalseWhenNotBeforeClaimIsGreaterThanNow (line 279) | #[PHPUnit\Test] method isExpiredShouldReturnFalseWhenTokenDoesNotExpires (line 291) | #[PHPUnit\Test] method isExpiredShouldReturnFalseWhenTokenIsNotExpired (line 299) | #[PHPUnit\Test] method isExpiredShouldReturnTrueWhenExpirationIsEqualsToNow (line 312) | #[PHPUnit\Test] method isExpiredShouldReturnTrueAfterTokenExpires (line 325) | #[PHPUnit\Test] method toStringMustReturnEncodedDataWithEmptySignature (line 338) | #[PHPUnit\Test] method toStringMustReturnEncodedData (line 346) | #[PHPUnit\Test] FILE: tests/Token/SignatureTest.php class SignatureTest (line 10) | #[PHPUnit\CoversClass(Signature::class)] method hashShouldReturnTheHash (line 13) | #[PHPUnit\Test] FILE: tests/UnsignedTokenTest.php class UnsignedTokenTest (line 26) | #[PHPUnit\CoversClass(Configuration::class)] method createConfiguration (line 51) | #[PHPUnit\Before] method builderCanGenerateAToken (line 60) | #[PHPUnit\Test] method parserCanReadAToken (line 84) | #[PHPUnit\Test] method tokenValidationShouldPassWhenEverythingIsFine (line 95) | #[PHPUnit\Test] method tokenValidationShouldAllowCustomConstraint (line 111) | #[PHPUnit\Test] method tokenAssertionShouldRaiseExceptionWhenOneOfTheConstraintsFails (line 118) | #[PHPUnit\Test] method validUserConstraint (line 133) | private function validUserConstraint(): Constraint FILE: tests/UnsupportedParser.php class UnsupportedParser (line 11) | final readonly class UnsupportedParser implements Parser method parse (line 13) | public function parse(string $jwt): Token FILE: tests/Validation/Constraint/ConstraintTestCase.php class ConstraintTestCase (line 16) | abstract class ConstraintTestCase extends TestCase method buildToken (line 22) | protected function buildToken( method issueToken (line 34) | protected function issueToken(Signer $signer, Signer\Key $key, ?Closur... FILE: tests/Validation/Constraint/HasClaimTest.php class HasClaimTest (line 12) | #[PHPUnit\CoversClass(ConstraintViolation::class)] method registeredClaimsCannotBeValidatedUsingThisConstraint (line 21) | #[PHPUnit\Test] method registeredClaims (line 34) | public static function registeredClaims(): iterable method assertShouldRaiseExceptionWhenClaimIsNotSet (line 41) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenTokenIsNotAPlainToken (line 52) | #[PHPUnit\Test] method assertShouldNotRaiseExceptionWhenClaimMatches (line 64) | #[PHPUnit\Test] FILE: tests/Validation/Constraint/HasClaimWithValueTest.php class HasClaimWithValueTest (line 12) | #[PHPUnit\CoversClass(ConstraintViolation::class)] method registeredClaimsCannotBeValidatedUsingThisConstraint (line 21) | #[PHPUnit\Test] method registeredClaims (line 34) | public static function registeredClaims(): iterable method assertShouldRaiseExceptionWhenClaimIsNotSet (line 41) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenClaimValueDoesNotMatch (line 52) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenTokenIsNotAPlainToken (line 63) | #[PHPUnit\Test] method assertShouldNotRaiseExceptionWhenClaimMatches (line 74) | #[PHPUnit\Test] FILE: tests/Validation/Constraint/IdentifiedByTest.php class IdentifiedByTest (line 12) | #[PHPUnit\CoversClass(ConstraintViolation::class)] method assertShouldRaiseExceptionWhenIdIsNotSet (line 19) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenIdDoesNotMatch (line 30) | #[PHPUnit\Test] method assertShouldNotRaiseExceptionWhenIdMatches (line 41) | #[PHPUnit\Test] FILE: tests/Validation/Constraint/IssuedByTest.php class IssuedByTest (line 12) | #[PHPUnit\CoversClass(ConstraintViolation::class)] method assertShouldRaiseExceptionWhenIssuerIsNotSet (line 19) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenIssuerValueDoesNotMatch (line 29) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenIssuerTypeValueDoesNotMatch (line 39) | #[PHPUnit\Test] method assertShouldNotRaiseExceptionWhenIssuerMatches (line 49) | #[PHPUnit\Test] FILE: tests/Validation/Constraint/LooseValidAtTest.php class LooseValidAtTest (line 14) | #[PHPUnit\CoversClass(Constraint\LeewayCannotBeNegative::class)] method buildValidAtConstraint (line 22) | protected function buildValidAtConstraint(Clock $clock, ?DateInterval ... method assertShouldNotRaiseExceptionWhenTokenDoesNotHaveTimeClaims (line 27) | #[PHPUnit\Test] FILE: tests/Validation/Constraint/PermittedForTest.php class PermittedForTest (line 12) | #[PHPUnit\CoversClass(ConstraintViolation::class)] method assertShouldRaiseExceptionWhenAudienceIsNotSet (line 19) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenAudienceValueDoesNotMatch (line 30) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenAudienceTypeDoesNotMatch (line 41) | #[PHPUnit\Test] method assertShouldNotRaiseExceptionWhenAudienceMatches (line 52) | #[PHPUnit\Test] FILE: tests/Validation/Constraint/RelatedToTest.php class RelatedToTest (line 12) | #[PHPUnit\CoversClass(ConstraintViolation::class)] method assertShouldRaiseExceptionWhenSubjectIsNotSet (line 19) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenSubjectDoesNotMatch (line 30) | #[PHPUnit\Test] method assertShouldNotRaiseExceptionWhenSubjectMatches (line 41) | #[PHPUnit\Test] FILE: tests/Validation/Constraint/SignedWithOneInSetTest.php class SignedWithOneInSetTest (line 29) | #[PHPUnit\CoversClass(SignedWithOneInSet::class)] method exceptionShouldBeRaisedWhenSignatureIsNotVerifiedByAllConstraints (line 47) | #[PHPUnit\Test] method assertShouldNotRaiseExceptionsWhenSignatureIsVerifiedByAtLeastOneConstraint (line 69) | #[PHPUnit\Test] FILE: tests/Validation/Constraint/SignedWithTest.php class SignedWithTest (line 14) | #[PHPUnit\CoversClass(ConstraintViolation::class)] method createDependencies (line 26) | #[PHPUnit\Before] method assertShouldRaiseExceptionWhenTokenIsNotAPlainToken (line 36) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenSignerIsNotTheSame (line 49) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenSignatureIsInvalid (line 64) | #[PHPUnit\Test] method assertShouldNotRaiseExceptionWhenSignatureIsValid (line 82) | #[PHPUnit\Test] FILE: tests/Validation/Constraint/SignedWithUntilDateTest.php class SignedWithUntilDateTest (line 26) | #[PHPUnit\CoversClass(SignedWithUntilDate::class)] method assertShouldRaiseExceptionWhenConstraintUsageIsNotValidAnymore (line 43) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenTokenIsNotAPlainToken (line 61) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenSignerIsNotTheSame (line 74) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenSignatureIsInvalid (line 88) | #[PHPUnit\Test] method assertShouldNotRaiseExceptionWhenSignatureIsValid (line 102) | #[PHPUnit\Test] method clockShouldBeOptional (line 116) | #[PHPUnit\Test] FILE: tests/Validation/Constraint/StrictValidAtTest.php class StrictValidAtTest (line 15) | #[PHPUnit\CoversClass(ConstraintViolation::class)] method buildValidAtConstraint (line 23) | protected function buildValidAtConstraint(Clock $clock, ?DateInterval ... method assertShouldRaiseExceptionWhenTokenIsNotAPlainToken (line 28) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenIatClaimIsMissing (line 39) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenNbfClaimIsMissing (line 50) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenExpClaimIsMissing (line 66) | #[PHPUnit\Test] FILE: tests/Validation/Constraint/ValidAtTestCase.php class ValidAtTestCase (line 16) | abstract class ValidAtTestCase extends ConstraintTestCase method createDependencies (line 20) | #[PHPUnit\Before] method buildValidAtConstraint (line 26) | abstract protected function buildValidAtConstraint(Clock $clock, ?Date... method constructShouldRaiseExceptionOnNegativeLeeway (line 28) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenTokenIsExpired (line 40) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenMinimumTimeIsNotMet (line 59) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenTokenWasIssuedInTheFuture (line 78) | #[PHPUnit\Test] method assertShouldNotRaiseExceptionWhenLeewayIsUsed (line 97) | #[PHPUnit\Test] method assertShouldNotRaiseExceptionWhenTokenIsUsedInTheRightMoment (line 114) | #[PHPUnit\Test] FILE: tests/Validation/ConstraintViolationTest.php class ConstraintViolationTest (line 11) | #[PHPUnit\CoversClass(ConstraintViolation::class)] method errorShouldConfigureMessageAndConstraint (line 15) | #[PHPUnit\Test] FILE: tests/Validation/RequiredConstraintsViolatedTest.php class RequiredConstraintsViolatedTest (line 11) | #[PHPUnit\CoversClass(RequiredConstraintsViolated::class)] method fromViolationsShouldConfigureMessageAndViolationList (line 15) | #[PHPUnit\Test] FILE: tests/Validation/ValidatorTest.php class ValidatorTest (line 16) | #[PHPUnit\CoversClass(Validator::class)] method createDependencies (line 23) | #[PHPUnit\Before] method assertShouldRaiseExceptionWhenNoConstraintIsGiven (line 29) | #[PHPUnit\Test] method assertShouldRaiseExceptionWhenAtLeastOneConstraintFails (line 39) | #[PHPUnit\Test] method assertShouldNotRaiseExceptionWhenNoConstraintFails (line 64) | #[PHPUnit\Test] method validateShouldRaiseExceptionWhenNoConstraintIsGiven (line 76) | #[PHPUnit\Test] method validateShouldReturnFalseWhenAtLeastOneConstraintFails (line 86) | #[PHPUnit\Test] method validateShouldReturnTrueWhenNoConstraintFails (line 110) | #[PHPUnit\Test]