Class StandardDecryptingChannelFactory
java.lang.Object
com.exceptionfactory.jagged.framework.stream.StandardDecryptingChannelFactory
- All Implemented Interfaces:
DecryptingChannelFactory
- Direct Known Subclasses:
ArmoredDecryptingChannelFactory
Standard implementation of Decrypting Channel Factory supports reading encrypted channels
-
Constructor Summary
ConstructorsConstructorDescriptionStandard Decrypting Channel Factory constructor using default Security Provider configurationStandardDecryptingChannelFactory(Provider provider) Standard 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
-
Constructor Details
-
StandardDecryptingChannelFactory
public StandardDecryptingChannelFactory()Standard Decrypting Channel Factory constructor using default Security Provider configuration -
StandardDecryptingChannelFactory
Standard 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- Specified by:
newDecryptingChannelin interfaceDecryptingChannelFactory- Parameters:
inputChannel- Input Channel source containing encrypted bytesrecipientStanzaReaders- 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
-