File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ In order to use it, you must:
1919
2020### Configuration initialisation
2121
22- The ` Lcobucci\JWT\Signer\Key ` object is used for symmetric/asymmetric signature.
22+ The ` Lcobucci\JWT\Signer\Key\InMemory ` object is used for symmetric/asymmetric signature.
2323
2424To initialise it, you can pass the key content as a plain text:
2525
@@ -83,13 +83,17 @@ use Lcobucci\JWT\Signer\Key\InMemory;
8383
8484$configuration = Configuration::forAsymmetricSigner(
8585 // You may use RSA or ECDSA and all their variations (256, 384, and 512)
86- new Signer\RSA \Sha256(),
86+ new Signer\Rsa \Sha256(),
8787 LocalFileReference::file(__DIR__ . '/my-private-key.pem'),
8888 InMemory::base64Encoded('mBC5v1sOKVvbdEitdSBenu59nfNfhwkedkJVNabosTw=')
8989 // You may also override the JOSE encoder/decoder if needed by providing extra arguments here
9090);
9191```
9292
93+ !!! Important
94+ The implementation of ECDSA algorithms have a constructor dependency.
95+ Use the ` create() ` named constructor to avoid having to handle it (e.g.: ` Lcobucci\JWT\Signer\Ecdsa\Sha256::create() ` ).
96+
9397#### For no algorithm
9498
9599!!! Warning
You can’t perform that action at this time.
0 commit comments