Interface PayloadKeyReader
- All Known Implementing Classes:
StandardPayloadKeyReader
public interface PayloadKeyReader
Abstraction responsible for reading File Header and deriving Payload Key from File Key after header verification
-
Method Summary
Modifier and TypeMethodDescriptiongetPayloadKey(ByteBuffer buffer, Iterable<RecipientStanzaReader> recipientStanzaReaders) Get Payload Key from File Header buffer using provided Recipient Stanza Readers to read File Key
-
Method Details
-
getPayloadKey
CipherKey getPayloadKey(ByteBuffer buffer, Iterable<RecipientStanzaReader> recipientStanzaReaders) throws GeneralSecurityException, IOException Get Payload Key from File Header buffer using provided Recipient Stanza Readers to read File Key- Parameters:
buffer- File Header bufferrecipientStanzaReaders- Recipient Stanza Readers- Returns:
- Payload Key
- Throws:
GeneralSecurityException- Thrown on failures to derive Payload KeyIOException- Thrown on failures to read File Header
-