This repository has been archived by the owner on Dec 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Florent Morselli
committed
Dec 29, 2015
1 parent
69f68f8
commit 7722404
Showing
15 changed files
with
118 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The Compression Manager | ||
======================= | ||
|
||
When you encrypt data or load a JWE, the payload may have been compressed. | ||
This library supports compression. | ||
|
||
# Supported compression methods | ||
|
||
This library supports the following algorithms: | ||
|
||
* Signature: | ||
* DEF: `Jose\Compression\Deflate`, | ||
* GZ: `Jose\Compression\GZip`, | ||
* ZLIB: `Jose\Compression\ZLib` | ||
|
||
*Note: only `DEF` is described in the [RFC 7516](http://tools.ietf.org/html/rfc7516).* | ||
*Others method should only used if both issuer and audience know how to use them* | ||
|
||
# Custom compression method | ||
|
||
If you need to use a custom compression method, you just have to create a class that implements `Jose\Compression\CompressionInterface` | ||
and inject it onto the encrypter or decrypter objects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
The Decrypter | ||
============= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,2 @@ | ||
The Encrypter | ||
============= | ||
|
||
The Encrypter will perform encryption. You can encrypt an input using one or more keys. | ||
|
||
To use our `Encrypter` object, you need to inject: | ||
* a [JWA Manager](jwa_manager.md), | ||
* a [Compression Manager](compression_manager.md), | ||
* a [Payload Converter Manager](payload_converter_manager.md). | ||
|
||
```php | ||
use Jose\Encrypter; | ||
|
||
$encrypter = new Encrypter($my_jwa_manager, $my_compression_manager, $my_payload_converter_manager); | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
The Verifier | ||
============ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.