Package org.bouncycastle.tls
Class SRPTlsClient
- java.lang.Object
-
- org.bouncycastle.tls.AbstractTlsPeer
-
- org.bouncycastle.tls.AbstractTlsClient
-
- org.bouncycastle.tls.SRPTlsClient
-
public class SRPTlsClient extends AbstractTlsClient
-
-
Field Summary
Fields Modifier and Type Field Description protected TlsSRPIdentity
srpIdentity
-
Fields inherited from class org.bouncycastle.tls.AbstractTlsClient
cipherSuites, context, protocolVersions, supportedGroups, supportedSignatureAlgorithms
-
-
Constructor Summary
Constructors Constructor Description SRPTlsClient(TlsCrypto crypto, byte[] identity, byte[] password)
SRPTlsClient(TlsCrypto crypto, TlsSRPIdentity srpIdentity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TlsAuthentication
getAuthentication()
java.util.Hashtable
getClientExtensions()
ProtocolVersion
getClientVersion()
TlsSRPIdentity
getSRPIdentity()
protected int[]
getSupportedCipherSuites()
void
processServerExtensions(java.util.Hashtable serverExtensions)
protected boolean
requireSRPServerExtension()
-
Methods inherited from class org.bouncycastle.tls.AbstractTlsClient
allowUnexpectedServerExtension, checkForUnexpectedServerExtension, getCertificateStatusRequest, getCipherSuites, getClientSupplementalData, getDHGroupVerifier, getEarlyKeyShareGroups, getNamedGroupRoles, getProtocolNames, getProtocolVersions, getPSKIdentity, getSessionToResume, getSNIServerNames, getSRPConfigVerifier, getSupportedGroups, getSupportedSignatureAlgorithms, init, isFallback, notifyHandshakeBeginning, notifyNewSessionTicket, notifySelectedCipherSuite, notifyServerVersion, notifySessionID, processServerSupplementalData
-
Methods inherited from class org.bouncycastle.tls.AbstractTlsPeer
cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getRenegotiationPolicy, getSupportedVersions, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedPadding, shouldUseGMTUnixTime
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bouncycastle.tls.TlsPeer
cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedPadding, shouldUseGMTUnixTime
-
-
-
-
Field Detail
-
srpIdentity
protected TlsSRPIdentity srpIdentity
-
-
Constructor Detail
-
SRPTlsClient
public SRPTlsClient(TlsCrypto crypto, byte[] identity, byte[] password)
-
SRPTlsClient
public SRPTlsClient(TlsCrypto crypto, TlsSRPIdentity srpIdentity)
-
-
Method Detail
-
getSupportedCipherSuites
protected int[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuites
in classAbstractTlsPeer
-
requireSRPServerExtension
protected boolean requireSRPServerExtension()
-
getClientVersion
public ProtocolVersion getClientVersion()
-
getClientExtensions
public java.util.Hashtable getClientExtensions() throws java.io.IOException
- Specified by:
getClientExtensions
in interfaceTlsClient
- Overrides:
getClientExtensions
in classAbstractTlsClient
- Throws:
java.io.IOException
-
processServerExtensions
public void processServerExtensions(java.util.Hashtable serverExtensions) throws java.io.IOException
- Specified by:
processServerExtensions
in interfaceTlsClient
- Overrides:
processServerExtensions
in classAbstractTlsClient
- Throws:
java.io.IOException
-
getSRPIdentity
public TlsSRPIdentity getSRPIdentity()
- Specified by:
getSRPIdentity
in interfaceTlsClient
- Overrides:
getSRPIdentity
in classAbstractTlsClient
-
getAuthentication
public TlsAuthentication getAuthentication() throws java.io.IOException
- Throws:
java.io.IOException
-
-