mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-27 06:42:05 +01:00
Document DocumentSignatureType
This commit is contained in:
parent
412b0aa119
commit
5965742e5f
1 changed files with 12 additions and 0 deletions
|
@ -15,10 +15,22 @@
|
||||||
*/
|
*/
|
||||||
package org.pgpainless.algorithm;
|
package org.pgpainless.algorithm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Subset of {@link SignatureType}, used for signatures over documents.
|
||||||
|
*/
|
||||||
public enum DocumentSignatureType {
|
public enum DocumentSignatureType {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Signature is calculated over the unchanged binary data.
|
||||||
|
*/
|
||||||
BINARY_DOCUMENT(SignatureType.BINARY_DOCUMENT),
|
BINARY_DOCUMENT(SignatureType.BINARY_DOCUMENT),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The signature is calculated over the text data with its line endings converted to
|
||||||
|
* <pre>
|
||||||
|
* {@code <CR><LF>}
|
||||||
|
* </pre>.
|
||||||
|
*/
|
||||||
CANONICAL_TEXT_DOCUMENT(SignatureType.CANONICAL_TEXT_DOCUMENT),
|
CANONICAL_TEXT_DOCUMENT(SignatureType.CANONICAL_TEXT_DOCUMENT),
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue