File: src/Keys/Version1/AsymmetricSecretKey.php

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  PHP PASeTo  >  src/Keys/Version1/AsymmetricSecretKey.php  >  Download  
File: src/Keys/Version1/AsymmetricSecretKey.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: 9 months ago
Size: 702 bytes
 

Contents

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

use
ParagonIE\Paseto\Keys\AsymmetricSecretKey as BaseSecretKey;
use
ParagonIE\Paseto\Protocol\Version1;
use
ParagonIE\Paseto\ProtocolInterface;

/**
 * Class AsymmetricSecretKey
 * @package ParagonIE\Paseto\Keys\Version1
 */
class AsymmetricSecretKey extends BaseSecretKey
{
   
/**
     * AsymmetricSecretKey constructor.
     *
     * @param string $keyData
     * @param ProtocolInterface|null $protocol
     *
     * @throws \Exception
     * @throws \TypeError
     */
   
public function __construct(string $keyData, ProtocolInterface $protocol = null)
    {
       
parent::__construct($keyData, new Version1());
    }
}


For more information send a message to info at phpclasses dot org.