public abstract class AbstractTlsClient extends AbstractTlsPeer implements TlsClient
Modifier and Type | Field and Description |
---|---|
protected TlsCipherFactory |
cipherFactory |
protected short[] |
clientECPointFormats |
protected TlsClientContext |
context |
protected int[] |
namedCurves |
protected int |
selectedCipherSuite |
protected short |
selectedCompressionMethod |
protected short[] |
serverECPointFormats |
protected Vector |
supportedSignatureAlgorithms |
Constructor and Description |
---|
AbstractTlsClient() |
AbstractTlsClient(TlsCipherFactory cipherFactory) |
notifyAlertRaised, notifyAlertReceived, notifyHandshakeComplete, notifySecureRenegotiation, shouldUseGMTUnixTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAuthentication, getCipherSuites, getKeyExchange
getCipher, notifyAlertRaised, notifyAlertReceived, notifyHandshakeComplete, notifySecureRenegotiation, shouldUseGMTUnixTime
protected TlsCipherFactory cipherFactory
protected TlsClientContext context
protected Vector supportedSignatureAlgorithms
protected int[] namedCurves
protected short[] clientECPointFormats
protected short[] serverECPointFormats
protected int selectedCipherSuite
protected short selectedCompressionMethod
public AbstractTlsClient()
public AbstractTlsClient(TlsCipherFactory cipherFactory)
protected boolean allowUnexpectedServerExtension(Integer extensionType, byte[] extensionData) throws IOException
IOException
protected void checkForUnexpectedServerExtension(Hashtable serverExtensions, Integer extensionType) throws IOException
IOException
public void init(TlsClientContext context)
public TlsSession getSessionToResume()
TlsClient
getSessionToResume
in interface TlsClient
TlsSession
representing the resumable session to be used for this
connection, or null to use a new session.SessionParameters.getPeerCertificate()
public ProtocolVersion getClientHelloRecordLayerVersion()
getClientHelloRecordLayerVersion
in interface TlsClient
public ProtocolVersion getClientVersion()
getClientVersion
in interface TlsClient
public boolean isFallback()
isFallback
in interface TlsClient
public Hashtable getClientExtensions() throws IOException
getClientExtensions
in interface TlsClient
IOException
public ProtocolVersion getMinimumVersion()
public void notifyServerVersion(ProtocolVersion serverVersion) throws IOException
notifyServerVersion
in interface TlsClient
IOException
public short[] getCompressionMethods()
getCompressionMethods
in interface TlsClient
public void notifySessionID(byte[] sessionID)
TlsClient
notifySessionID
in interface TlsClient
TlsContext.getResumableSession()
public void notifySelectedCipherSuite(int selectedCipherSuite)
notifySelectedCipherSuite
in interface TlsClient
public void notifySelectedCompressionMethod(short selectedCompressionMethod)
notifySelectedCompressionMethod
in interface TlsClient
public void processServerExtensions(Hashtable serverExtensions) throws IOException
processServerExtensions
in interface TlsClient
IOException
public void processServerSupplementalData(Vector serverSupplementalData) throws IOException
processServerSupplementalData
in interface TlsClient
IOException
public Vector getClientSupplementalData() throws IOException
getClientSupplementalData
in interface TlsClient
IOException
public TlsCompression getCompression() throws IOException
getCompression
in interface TlsPeer
IOException
public void notifyNewSessionTicket(NewSessionTicket newSessionTicket) throws IOException
TlsClient
This method will be called (only) when a NewSessionTicket handshake message is received. The ticket is opaque to the client and clients MUST NOT examine the ticket under the assumption that it complies with e.g. RFC 5077 4. Recommended Ticket Construction.
notifyNewSessionTicket
in interface TlsClient
newSessionTicket
- The ticket.IOException
Copyright © 2016 BouncyCastle.org. All rights reserved.