Top Inners Fields Constructors Methods
org.bouncycastle.mls.codec

public Class MLSInputStream

extends Object
Class Inheritance
Imports
java.io.ByteArrayInputStream, .IOException, java.lang.reflect.Array, .Constructor, .InvocationTargetException, java.util.List

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv MLSInputStream.SliceableStream

Constructor Summary

AccessConstructor and Description
public
MLSInputStream(byte[] data)

pack-priv

Method Summary

Modifier and TypeMethod and Description
public static Object
decode(byte[] data, Class<?> targetClass)

pack-priv byte
peek()

public Object
read(Class<?> targetClass)

public Object
readArray(Class<?> elemClass)

pack-priv boolean
pack-priv long
readInt(byte[] data)

pack-priv long
readInt(int size)

public <E> void
readList(List<E> list, Class<E> elemClass)

public byte[]
public Object
readOptional(Class<?> targetClass)

private Object
readReadable(Class<?> targetClass)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

streamback to summary
pack-priv MLSInputStream.SliceableStream stream

Constructor Detail

MLSInputStreamback to summary
public MLSInputStream(byte[] data)
MLSInputStreamback to summary
pack-priv MLSInputStream(MLSInputStream.SliceableStream stream)

Method Detail

decodeback to summary
public static Object decode(byte[] data, Class<?> targetClass) throws IOException
peekback to summary
pack-priv byte peek() throws IOException
readback to summary
public Object read(Class<?> targetClass) throws IOException
readArrayback to summary
public Object readArray(Class<?> elemClass) throws IOException
readBooleanback to summary
pack-priv boolean readBoolean() throws IOException
readIntback to summary
pack-priv long readInt(byte[] data)
readIntback to summary
pack-priv long readInt(int size) throws IOException
readListback to summary
public <E> void readList(List<E> list, Class<E> elemClass) throws IOException
readOpaqueback to summary
public byte[] readOpaque() throws IOException
readOptionalback to summary
public Object readOptional(Class<?> targetClass) throws IOException
readReadableback to summary
private Object readReadable(Class<?> targetClass) throws IOException
org.bouncycastle.mls.codec back to summary

public Interface MLSInputStream.Readable

Known Direct Implementers
org.bouncycastle.mls.codec.MLSMessage, org.bouncycastle.mls.codec.AuthenticatedContentTBM, org.bouncycastle.mls.codec.FramedContentAuthData, org.bouncycastle.mls.codec.FramedContentTBS, org.bouncycastle.mls.codec.SenderData, org.bouncycastle.mls.codec.SenderDataAAD, org.bouncycastle.mls.codec.PrivateMessageContent, org.bouncycastle.mls.codec.PrivateContentAAD, org.bouncycastle.mls.codec.EncryptedGroupSecrets, org.bouncycastle.mls.codec.NodeType, org.bouncycastle.mls.codec.PathSecret, org.bouncycastle.mls.codec.PrivateMessage, org.bouncycastle.mls.codec.Proposal, org.bouncycastle.mls.codec.Proposal.Add, org.bouncycastle.mls.codec.Proposal.Update, org.bouncycastle.mls.codec.Proposal.Remove, org.bouncycastle.mls.codec.Proposal.PreSharedKey, org.bouncycastle.mls.codec.Proposal.ReInit, org.bouncycastle.mls.codec.Proposal.ExternalInit, org.bouncycastle.mls.codec.Proposal.GroupContextExtensions, org.bouncycastle.mls.codec.ProposalOrRef, org.bouncycastle.mls.codec.ProposalOrRefType, org.bouncycastle.mls.codec.ProposalType, org.bouncycastle.mls.codec.ProtocolVersion, org.bouncycastle.mls.codec.PSKType, org.bouncycastle.mls.codec.PublicMessage, org.bouncycastle.mls.codec.ResumptionPSKUsage, org.bouncycastle.mls.codec.Sender, org.bouncycastle.mls.codec.SenderType, org.bouncycastle.mls.codec.UpdatePath, org.bouncycastle.mls.codec.UpdatePathNode, org.bouncycastle.mls.codec.Varint, org.bouncycastle.mls.codec.Welcome, org.bouncycastle.mls.codec.WireFormat, org.bouncycastle.mls.TreeKEM.LeafIndex, org.bouncycastle.mls.TreeKEM.LeafNode, org.bouncycastle.mls.TreeKEM.LeafNodeHashInput, org.bouncycastle.mls.TreeKEM.LeafNodeSource, org.bouncycastle.mls.TreeKEM.LifeTime, org.bouncycastle.mls.TreeKEM.Node, org.bouncycastle.mls.TreeKEM.OptionalNode, org.bouncycastle.mls.TreeKEM.ParentHashInput, org.bouncycastle.mls.TreeKEM.ParentNode, org.bouncycastle.mls.TreeKEM.ParentNodeHashInput, org.bouncycastle.mls.TreeKEM.TreeHashInput, org.bouncycastle.mls.TreeKEM.TreeKEMPublicKey, org.bouncycastle.mls.codec.PreSharedKeyID, org.bouncycastle.mls.codec.AuthenticatedContent, org.bouncycastle.mls.codec.ConfirmedTranscriptHashInput, org.bouncycastle.mls.codec.InterimTranscriptHashInput, org.bouncycastle.mls.codec.Capabilities, org.bouncycastle.mls.codec.Certificate, org.bouncycastle.mls.codec.Commit, org.bouncycastle.mls.codec.ContentType, org.bouncycastle.mls.codec.Credential, org.bouncycastle.mls.codec.CredentialType, org.bouncycastle.mls.codec.Extension, org.bouncycastle.mls.codec.ExtensionType, org.bouncycastle.mls.codec.ExternalSender, org.bouncycastle.mls.codec.FramedContent, org.bouncycastle.mls.codec.GroupContext, org.bouncycastle.mls.codec.GroupInfo, org.bouncycastle.mls.codec.GroupSecrets, org.bouncycastle.mls.codec.HPKECiphertext, org.bouncycastle.mls.codec.KeyPackage

org.bouncycastle.mls.codec back to summary

pack-priv Class MLSInputStream.SliceableStream

extends ByteArrayInputStream
Class Inheritance

Field Summary

Inherited from java.io.ByteArrayInputStream:
bufcountmarkpos

Constructor Summary

AccessConstructor and Description
public
SliceableStream(byte[] buf)

public
SliceableStream(byte[] buf, int pos, int size)

Method Summary

Modifier and TypeMethod and Description
pack-priv byte
peek()

pack-priv byte[]
readAll(int size)

pack-priv MLSInputStream.SliceableStream
slice(int size)

Inherited from java.io.ByteArrayInputStream:
availableclosemarkmarkSupportedreadreadreadAllBytesreadNBytesresetskiptransferTo

Constructor Detail

SliceableStreamback to summary
public SliceableStream(byte[] buf)
SliceableStreamback to summary
public SliceableStream(byte[] buf, int pos, int size)

Method Detail

peekback to summary
pack-priv byte peek() throws IOException
readAllback to summary
pack-priv byte[] readAll(int size) throws IOException
sliceback to summary
pack-priv MLSInputStream.SliceableStream slice(int size) throws IOException