@Generated(value="de.adorsys.datasafe.runtimedelegate.RuntimeDelegateGenerator", comments="This class performs functionality delegation based on contextClass content. If contextClass contains overriding class - it will be used.") public class CMSEncryptionServiceImplRuntimeDelegatable extends CMSEncryptionServiceImpl
| Modifier and Type | Class and Description |
|---|---|
static class |
CMSEncryptionServiceImplRuntimeDelegatable.ArgumentsCaptor |
| Constructor and Description |
|---|
CMSEncryptionServiceImplRuntimeDelegatable(OverridesRegistry context,
ASNCmsEncryptionConfig encryptionConfig) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
buildDecryptionInputStream(InputStream inputStream,
Function<Set<String>,Map<String,Key>> keysByIds)
Decryption stream using
CMSEnvelopedDataParser, supported recipients ids are:
- RecipientId.keyTrans for asymmetric encryption
- RecipientId.kek for symmetric encryption |
OutputStream |
buildEncryptionOutputStream(OutputStream dataContentStream,
SecretKey secretKey,
KeyID keyID)
Symmetrical encryption-based stream, algorithm is provided by
ASNCmsEncryptionConfig#getAlgorithm()
Uses RecipientId.kek recipient id. |
OutputStream |
buildEncryptionOutputStream(OutputStream dataContentStream,
Set<PublicKeyIDWithPublicKey> publicKeys)
Asymmetrical encryption-based stream, algorithm is provided by
ASNCmsEncryptionConfig#getAlgorithm()
Uses RecipientId.keyTrans recipient id. |
static void |
overrideWith(OverridesRegistry context,
Function<CMSEncryptionServiceImplRuntimeDelegatable.ArgumentsCaptor,CMSEncryptionServiceImpl> ctorCaptor)
This is a typesafe function to register overriding class into context.
|
@Inject public CMSEncryptionServiceImplRuntimeDelegatable(@Nullable OverridesRegistry context, ASNCmsEncryptionConfig encryptionConfig)
context - Context class to search for overrides.public OutputStream buildEncryptionOutputStream(OutputStream dataContentStream, Set<PublicKeyIDWithPublicKey> publicKeys)
CMSEncryptionServiceImplASNCmsEncryptionConfig#getAlgorithm()
Uses RecipientId.keyTrans recipient id.buildEncryptionOutputStream in interface CMSEncryptionServicebuildEncryptionOutputStream in class CMSEncryptionServiceImplpublic OutputStream buildEncryptionOutputStream(OutputStream dataContentStream, SecretKey secretKey, KeyID keyID)
CMSEncryptionServiceImplASNCmsEncryptionConfig#getAlgorithm()
Uses RecipientId.kek recipient id.buildEncryptionOutputStream in interface CMSEncryptionServicebuildEncryptionOutputStream in class CMSEncryptionServiceImplpublic InputStream buildDecryptionInputStream(InputStream inputStream, Function<Set<String>,Map<String,Key>> keysByIds)
CMSEncryptionServiceImplCMSEnvelopedDataParser, supported recipients ids are:
- RecipientId.keyTrans for asymmetric encryption
- RecipientId.kek for symmetric encryptionbuildDecryptionInputStream in interface CMSEncryptionServicebuildDecryptionInputStream in class CMSEncryptionServiceImplpublic static void overrideWith(OverridesRegistry context, Function<CMSEncryptionServiceImplRuntimeDelegatable.ArgumentsCaptor,CMSEncryptionServiceImpl> ctorCaptor)
Copyright © 2020. All rights reserved.