CadesSignatureCompression
Namespace: Lacuna.Pki.Cades
Assembly: Lacuna.Pki
Class
Class with methods for compressing and decompressing CAdES signatures storing objects likely to be repeated across different signatures such as certificates and CRLs on an external store, avoiding redundant storage of such objects.
public static class CadesSignatureCompression
Hierarquia: object → CadesSignatureCompression
Métodos
Compress(byte[], ISimpleStore, out byte[])
Compresses a CAdES signature storing objects likely to be repeated across different signatures such as certificates and CRLs in an external store, separating the encapsulated content within the signature (attached signature) if present.
public static byte[] Compress(byte[] cadesSignature, ISimpleStore store, out byte[] encapsulatedContent)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
cadesSignature | byte[] | The CAdES signature to be compressed. |
store | ISimpleStore | The external store on which to store the repeatable objects. |
encapsulatedContent | byte[] | When this method returns, contains the encapsulated content within the signature, if any. |
Retorno
byte[] — The compressed signature in a proprietary format that can be decompressed with the Byte%5b%5d) method.
Comentários
The given signature need not have been generated by the SDK, it can be any CAdES signature.
If you wish to store the signature with the encapsulated content inside, or if you don´t care about the encapsulated content (for instance if
all your signatures are detached), use the method ISimpleStore) instead.
Compress(byte[], ISimpleStore)
Compresses a CAdES signature storing objects likely to be repeated across different signatures such as certificates and CRLs in an external store.
public static byte[] Compress(byte[] cadesSignature, ISimpleStore store)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
cadesSignature | byte[] | The CAdES signature to be compressed. |
store | ISimpleStore | The external store on which to store the repeatable objects. |
Retorno
byte[] — The compressed signature in a proprietary format that can be decompressed with the Byte%5b%5d) method.
Comentários
The given signature need not have been generated by the SDK, it can be any CAdES signature.
If the given signature has an encapsulated content (attached signature), this method does not remove it. If you want
to separate the encapsulated content from the signature during the compression, use the method Byte%5b%5d%40)
instead.
Decompress(byte[], ISimpleStore, byte[])
Decompresses a CAdES signature previously compressed with the compression methods from this class.
public static byte[] Decompress(byte[] compressedSignature, ISimpleStore store, byte[] encapsulatedContent)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
compressedSignature | byte[] | The compressed signature in proprietary format. |
store | ISimpleStore | The external store where the repeatable objects were stored during the compression. |
encapsulatedContent | byte[] | The encapsulated content separated during the compression, if any. |
Retorno
byte[] — The original signature.
Comentários
If the original signature had an encapsulated content and the method Byte%5b%5d%40)
was used to compress the signature, you must pass the encapsulatedContent parameter.
Decompress(byte[], ISimpleStore)
Decompresses a CAdES signature previously compressed with the compression methods from this class.
public static byte[] Decompress(byte[] compressedSignature, ISimpleStore store)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
compressedSignature | byte[] | The compressed signature in proprietary format. |
store | ISimpleStore | The external store where the repeatable objects were stored during the compression. |
Retorno
Membros herdados
ToString(), Equals(object), Equals(object, object), ReferenceEquals(object, object), GetHashCode(), GetType(), MemberwiseClone()