Class StandardPayloadKeyReader
java.lang.Object
com.exceptionfactory.jagged.framework.format.StandardPayloadKeyReader
- All Implemented Interfaces:
PayloadKeyReader
Standard implementation of Payload Key Reader
-
Constructor Summary
ConstructorsConstructorDescriptionStandard Payload Key Reader constructor with Standard File Key Reader -
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
-
Constructor Details
-
StandardPayloadKeyReader
public StandardPayloadKeyReader()Standard Payload Key Reader constructor with Standard File Key Reader
-
-
Method Details
-
getPayloadKey
public 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- Specified by:
getPayloadKeyin interfacePayloadKeyReader- 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
-