diff --git a/src/TokenSigner/HmacTokenSigner.php b/src/TokenSigner/HmacTokenSigner.php new file mode 100644 index 00000000..e955ee05 --- /dev/null +++ b/src/TokenSigner/HmacTokenSigner.php @@ -0,0 +1,46 @@ +signer = $signer; + $this->key = $key; + } + + /** + * @return \Lcobucci\JWT\Signer + */ + public function getSigner() + { + return $this->signer; + } + + /** + * @return string + */ + public function getKey() + { + return $this->key; + } +} diff --git a/src/TokenSigner/RsaKeyTokenSigner.php b/src/TokenSigner/RsaKeyTokenSigner.php new file mode 100644 index 00000000..1128046a --- /dev/null +++ b/src/TokenSigner/RsaKeyTokenSigner.php @@ -0,0 +1,47 @@ +signer = $signer; + $this->key = new Signer\Key($privateKey->getKeyPath(), $privateKey->getPassPhrase()); + } + + /** + * @return \Lcobucci\JWT\Signer + */ + public function getSigner() + { + return $this->signer; + } + + /** + * @return CryptKey + */ + public function getKey() + { + return $this->key; + } +} diff --git a/src/TokenSigner/TokenSignerInterface.php b/src/TokenSigner/TokenSignerInterface.php new file mode 100644 index 00000000..ddb01a13 --- /dev/null +++ b/src/TokenSigner/TokenSignerInterface.php @@ -0,0 +1,16 @@ +