Class StandardPayloadKeyWriter
java.lang.Object
com.exceptionfactory.jagged.framework.format.StandardPayloadKeyWriter
- All Implemented Interfaces:
PayloadKeyWriter
Standard implementation of Payload Key Writer generates a File Key and serializes File Header then returns derived Payload Key
-
Constructor Summary
ConstructorsConstructorDescriptionStandard Payload Key Writer default constructor does not set any variables -
Method Summary
Modifier and TypeMethodDescriptionwriteFileHeader(ByteBuffer buffer, Iterable<RecipientStanzaWriter> recipientStanzaWriters) Write File Header to buffer after generating a File Key and return derived Payload Key
-
Constructor Details
-
StandardPayloadKeyWriter
public StandardPayloadKeyWriter()Standard Payload Key Writer default constructor does not set any variables
-
-
Method Details
-
writeFileHeader
public CipherKey writeFileHeader(ByteBuffer buffer, Iterable<RecipientStanzaWriter> recipientStanzaWriters) throws GeneralSecurityException, IOException Write File Header to buffer after generating a File Key and return derived Payload Key- Specified by:
writeFileHeaderin interfacePayloadKeyWriter- Parameters:
buffer- Byte Buffer with sufficient capacity for serialized File Header should support at least 128 bytesrecipientStanzaWriters- Recipient Stanza Writers- Returns:
- Derived Payload Cipher Key for encryption operations
- Throws:
GeneralSecurityException- Thrown on cipher operation failuresIOException- Thrown on serialization failures
-