Top Fields Constructors Methods
org.bouncycastle.tls

public Class HandshakeMessageInput

extends ByteArrayInputStream
Class Inheritance
Imports
java.io.ByteArrayInputStream, org.bouncycastle.tls.crypto.TlsHash

Field Summary

Inherited from java.io.ByteArrayInputStream:
bufcountmarkpos

Constructor Summary

AccessConstructor and Description
pack-priv
HandshakeMessageInput(byte[] buf, int offset, int length)

Method Summary

Modifier and TypeMethod and Description
public void
mark(int
the maximum limit of bytes that can be read before the mark position becomes invalid.
readAheadLimit
)

Overrides java.io.ByteArrayInputStream.mark.

Set the current marked position in the stream.
public boolean
markSupported()

Overrides java.io.ByteArrayInputStream.markSupported.

Tests if this InputStream supports mark/reset.
public void
pack-priv void
updateHashPrefix(TlsHash hash, int bindersSize)

pack-priv void
updateHashSuffix(TlsHash hash, int bindersSize)

Inherited from java.io.ByteArrayInputStream:
availableclosereadreadreadAllBytesreadNBytesresetskiptransferTo

Constructor Detail

HandshakeMessageInputback to summary
pack-priv HandshakeMessageInput(byte[] buf, int offset, int length)

Method Detail

markback to summary
public void mark(int readAheadLimit)

Overrides java.io.ByteArrayInputStream.mark.

Doc from java.io.ByteArrayInputStream.mark.

Set the current marked position in the stream. ByteArrayInputStream objects are marked at position zero by default when constructed. They may be marked at another position within the buffer by this method.

If no mark has been set, then the value of the mark is the offset passed to the constructor (or 0 if the offset was not supplied).

Note

The readAheadLimit for this class has no meaning.

Parameters
readAheadLimit:int

Doc from java.io.InputStream.mark.

the maximum limit of bytes that can be read before the mark position becomes invalid.

markSupportedback to summary
public boolean markSupported()

Overrides java.io.ByteArrayInputStream.markSupported.

Doc from java.io.ByteArrayInputStream.markSupported.

Tests if this InputStream supports mark/reset.

Returns:boolean

true

updateHashback to summary
public void updateHash(TlsHash hash)
updateHashPrefixback to summary
pack-priv void updateHashPrefix(TlsHash hash, int bindersSize)
updateHashSuffixback to summary
pack-priv void updateHashSuffix(TlsHash hash, int bindersSize)