Top Fields Constructors Methods
org.bouncycastle.est.jcajce

pack-priv Class LimitedSSLSocketSource

extends Object
implements Source<SSLSession>, TLSUniqueProvider, LimitedSource
Class Inheritance
All Implemented Interfaces
org.bouncycastle.est.LimitedSource, org.bouncycastle.est.TLSUniqueProvider, org.bouncycastle.est.Source
Imports
java.io.IOException, .InputStream, .OutputStream, javax.net.ssl.SSLSession, .SSLSocket, org.bouncycastle.est.LimitedSource, .Source, .TLSUniqueProvider

Field Summary

Modifier and TypeField and Description
private final Long
private final ChannelBindingProvider
protected final SSLSocket

Constructor Summary

AccessConstructor and Description
public
LimitedSSLSocketSource(SSLSocket sock, ChannelBindingProvider bindingProvider, Long absoluteReadLimit)

Method Summary

Modifier and TypeMethod and Description
public void
public Long
getAbsoluteReadLimit()

Implements org.bouncycastle.est.LimitedSource.getAbsoluteReadLimit.

Return the maximum number of bytes available from this source.

public InputStream
public OutputStream
public SSLSession
public byte[]
getTLSUnique()

Implements org.bouncycastle.est.TLSUniqueProvider.getTLSUnique.

Return the TLS unique value.

public boolean
isTLSUniqueAvailable()

Implements org.bouncycastle.est.TLSUniqueProvider.isTLSUniqueAvailable.

Return true if a TLS unique value should be available.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

absoluteReadLimitback to summary
private final Long absoluteReadLimit
bindingProviderback to summary
private final ChannelBindingProvider bindingProvider
socketback to summary
protected final SSLSocket socket

Constructor Detail

LimitedSSLSocketSourceback to summary
public LimitedSSLSocketSource(SSLSocket sock, ChannelBindingProvider bindingProvider, Long absoluteReadLimit)

Method Detail

closeback to summary
public void close() throws IOException

Implements org.bouncycastle.est.Source.close.

getAbsoluteReadLimitback to summary
public Long getAbsoluteReadLimit()

Implements org.bouncycastle.est.LimitedSource.getAbsoluteReadLimit.

Doc from org.bouncycastle.est.LimitedSource.getAbsoluteReadLimit.

Return the maximum number of bytes available from this source.

Returns:Long

the max bytes this source can produce.

getInputStreamback to summary
public InputStream getInputStream() throws IOException

Implements org.bouncycastle.est.Source.getInputStream.

getOutputStreamback to summary
public OutputStream getOutputStream() throws IOException

Implements org.bouncycastle.est.Source.getOutputStream.

getSessionback to summary
public SSLSession getSession()

Implements org.bouncycastle.est.Source.getSession.

getTLSUniqueback to summary
public byte[] getTLSUnique()

Implements org.bouncycastle.est.TLSUniqueProvider.getTLSUnique.

Doc from org.bouncycastle.est.TLSUniqueProvider.getTLSUnique.

Return the TLS unique value.

Returns:byte[]

a TLS unique value.

isTLSUniqueAvailableback to summary
public boolean isTLSUniqueAvailable()

Implements org.bouncycastle.est.TLSUniqueProvider.isTLSUniqueAvailable.

Doc from org.bouncycastle.est.TLSUniqueProvider.isTLSUniqueAvailable.

Return true if a TLS unique value should be available.

Returns:boolean

true if a TLS unique should be available, false otherwise.