Class ArmoredDecryptingChannelFactory
java.lang.Object
com.exceptionfactory.jagged.framework.stream.StandardDecryptingChannelFactory
com.exceptionfactory.jagged.framework.armor.ArmoredDecryptingChannelFactory
- All Implemented Interfaces:
DecryptingChannelFactory
ASCII Armored implementation of Decrypting Channel Factory supports reading encrypted channels with Base64 wrapping
-
Constructor Summary
ConstructorsConstructorDescriptionArmored Decrypting Channel Factory constructor using default Security Provider configurationArmoredDecryptingChannelFactory(Provider provider) Armored Decrypting Channel Factory constructor using specified Security Provider -
Method Summary
Modifier and TypeMethodDescriptionnewDecryptingChannel(ReadableByteChannel inputChannel, Iterable<RecipientStanzaReader> recipientStanzaReaders) Create new channel that reads and decrypts from the supplied open input channel with ASCII Armored Base64 wrapping
-
Constructor Details
-
ArmoredDecryptingChannelFactory
public ArmoredDecryptingChannelFactory()Armored Decrypting Channel Factory constructor using default Security Provider configuration -
ArmoredDecryptingChannelFactory
Armored Decrypting Channel Factory constructor using specified Security Provider- Parameters:
provider- Security Provider supporting ChaCha20-Poly1305
-
-
Method Details
-
newDecryptingChannel
public ReadableByteChannel newDecryptingChannel(ReadableByteChannel inputChannel, Iterable<RecipientStanzaReader> recipientStanzaReaders) throws GeneralSecurityException, IOException Create new channel that reads and decrypts from the supplied open input channel with ASCII Armored Base64 wrapping- Specified by:
newDecryptingChannelin interfaceDecryptingChannelFactory- Overrides:
newDecryptingChannelin classStandardDecryptingChannelFactory- Parameters:
inputChannel- Input Channel source containing encrypted bytes with ASCII Armored Base64 wrappingrecipientStanzaReaders- Recipient Stanza Readers capable of providing the Identity to read the File Key for decryption- Returns:
- Readable Byte Channel
- Throws:
GeneralSecurityException- Thrown on recipient processing or cipher operation failuresIOException- Thrown on failures to read input channel
-