Skip to content

Commit

Permalink
update kms to allow custmize kms alias, region and version
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Wang committed Feb 20, 2018
1 parent 085b3b6 commit 54c4ec7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/JWT/Helpers/KMS.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@

class KMS
{
public $region = "us-west-2";
public $version = "2014-11-01";
public $alias = "rw-jwt";
public $region;
public $version;
public $alias;

private $ciphertextBlob;
private $plaintext;
private $keyRotation = 3600;
private $cacheKey = "kms-oS7I426LX2";

function __construct()
function __construct($alias = "rw-jwt", $region = "us-west-2", $version = "2014-11-01")
{
$this->alias = $alias;
$this->region = $region;
$this->version = $version;
}

/**
Expand Down

0 comments on commit 54c4ec7

Please sign in to comment.