Class AuthenticatedContent
java.lang.Object
org.bouncycastle.mls.codec.AuthenticatedContent
- All Implemented Interfaces:
MLSInputStream.Readable, MLSOutputStream.Writable
public class AuthenticatedContent
extends Object
implements MLSInputStream.Readable, MLSOutputStream.Writable
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticatedContent(MLSInputStream stream) AuthenticatedContent(WireFormat wireFormat, FramedContent content, org.bouncycastle.mls.codec.FramedContentAuthData auth) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]byte[]byte[]voidsetConfirmationTag(byte[] tag) static AuthenticatedContentsign(WireFormat wireFormat, FramedContent content, MlsCipherSuite suite, byte[] sigPriv, byte[] groupContext) booleanverify(MlsCipherSuite suite, byte[] sigPub, byte[] context) voidwriteTo(MLSOutputStream stream)
-
Constructor Details
-
AuthenticatedContent
public AuthenticatedContent(WireFormat wireFormat, FramedContent content, org.bouncycastle.mls.codec.FramedContentAuthData auth) throws Exception - Throws:
Exception
-
AuthenticatedContent
- Throws:
IOException
-
-
Method Details
-
getContent
-
getWireFormat
-
setConfirmationTag
public void setConfirmationTag(byte[] tag) -
getConfirmationTag
public byte[] getConfirmationTag() -
getConfirmedTranscriptHashInput
- Throws:
IOException
-
getInterimTranscriptHashInput
- Throws:
IOException
-
sign
public static AuthenticatedContent sign(WireFormat wireFormat, FramedContent content, MlsCipherSuite suite, byte[] sigPriv, byte[] groupContext) throws Exception - Throws:
Exception
-
verify
- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceMLSOutputStream.Writable- Throws:
IOException
-