PHP Classes

File: src/Traits/RegisteredClaims.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   PHP PASeTo   src/Traits/RegisteredClaims.php   Download  
File: src/Traits/RegisteredClaims.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP PASeTo
Encrypt and decrypt data with PaSeTO protocol
Author: By
Last change:
Date: 4 years ago
Size: 511 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);
namespace
ParagonIE\Paseto\Traits;

/**
 * Trait RegisteredClaims
 * @package ParagonIE\Paseto\Traits
 */
trait RegisteredClaims
{
   
/**
     * @var array<string, string>
     *
     * Adopted from JWT for usability
     */
   
public $registeredClaims = [
       
'iss' => 'Issuer',
       
'sub' => 'Subject',
       
'aud' => 'Audience',
       
'exp' => 'Expiration',
       
'nbf' => 'Not Before',
       
'iat' => 'Issued At',
       
'jti' => 'Token Identifier'
   
];
}