Package org.bouncycastle.mls.codec
Class FramedContent
java.lang.Object
org.bouncycastle.mls.codec.FramedContent
- All Implemented Interfaces:
MLSInputStream.Readable
,MLSOutputStream.Writable
public class FramedContent
extends Object
implements MLSInputStream.Readable, MLSOutputStream.Writable
-
Constructor Summary
ConstructorsConstructorDescriptionFramedContent
(byte[] group_id, long epoch, Sender sender, byte[] authenticated_data, byte[] application_data, ContentType content_type, Proposal proposal, Commit commit) FramedContent
(MLSInputStream stream) -
Method Summary
Modifier and TypeMethodDescriptionstatic FramedContent
application
(byte[] group_id, long epoch, Sender sender, byte[] authenticated_data, byte[] application_data) static FramedContent
byte[]
byte[]
long
getEpoch()
byte[]
static FramedContent
static FramedContent
rawContent
(byte[] group_id, long epoch, Sender sender, byte[] authenticated_data, ContentType content_type, byte[] contentBytes) void
writeTo
(MLSOutputStream stream)
-
Constructor Details
-
FramedContent
- Throws:
IOException
-
FramedContent
public FramedContent(byte[] group_id, long epoch, Sender sender, byte[] authenticated_data, byte[] application_data, ContentType content_type, Proposal proposal, Commit commit)
-
-
Method Details
-
getProposal
-
getCommit
-
getSender
-
getGroupID
public byte[] getGroupID() -
getEpoch
public long getEpoch() -
getContentType
-
getAuthenticated_data
public byte[] getAuthenticated_data() -
getContentBytes
- Throws:
IOException
-
rawContent
public static FramedContent rawContent(byte[] group_id, long epoch, Sender sender, byte[] authenticated_data, ContentType content_type, byte[] contentBytes) throws IOException - Throws:
IOException
-
application
public static FramedContent application(byte[] group_id, long epoch, Sender sender, byte[] authenticated_data, byte[] application_data) -
proposal
public static FramedContent proposal(byte[] group_id, long epoch, Sender sender, byte[] authenticated_data, byte[] proposal) throws IOException - Throws:
IOException
-
commit
public static FramedContent commit(byte[] group_id, long epoch, Sender sender, byte[] authenticated_data, byte[] commit) throws IOException - Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceMLSOutputStream.Writable
- Throws:
IOException
-