Package org.bouncycastle.crypto.tls
Class SRPTlsServer
- java.lang.Object
-
- org.bouncycastle.crypto.tls.AbstractTlsPeer
-
- org.bouncycastle.crypto.tls.AbstractTlsServer
-
- org.bouncycastle.crypto.tls.SRPTlsServer
-
public class SRPTlsServer extends AbstractTlsServer
-
-
Field Summary
Fields Modifier and Type Field Description protected TlsSRPLoginParametersloginParametersprotected byte[]srpIdentityprotected TlsSRPIdentityManagersrpIdentityManager-
Fields inherited from class org.bouncycastle.crypto.tls.AbstractTlsServer
cipherFactory, clientECPointFormats, clientExtensions, clientVersion, context, eccCipherSuitesOffered, encryptThenMACOffered, maxFragmentLengthOffered, namedCurves, offeredCipherSuites, offeredCompressionMethods, selectedCipherSuite, selectedCompressionMethod, serverECPointFormats, serverExtensions, serverVersion, supportedSignatureAlgorithms, truncatedHMacOffered
-
-
Constructor Summary
Constructors Constructor Description SRPTlsServer(TlsCipherFactory cipherFactory, TlsSRPIdentityManager srpIdentityManager)SRPTlsServer(TlsSRPIdentityManager srpIdentityManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TlsKeyExchangecreateSRPKeyExchange(int keyExchange)protected int[]getCipherSuites()TlsCredentialsgetCredentials()protected TlsSignerCredentialsgetDSASignerCredentials()TlsKeyExchangegetKeyExchange()protected TlsSignerCredentialsgetRSASignerCredentials()intgetSelectedCipherSuite()voidprocessClientExtensions(java.util.Hashtable clientExtensions)-
Methods inherited from class org.bouncycastle.crypto.tls.AbstractTlsServer
allowEncryptThenMAC, allowTruncatedHMac, checkServerExtensions, getCertificateRequest, getCertificateStatus, getCipher, getCompression, getCompressionMethods, getMaximumVersion, getMinimumVersion, getNewSessionTicket, getSelectedCompressionMethod, getServerExtensions, getServerSupplementalData, getServerVersion, init, notifyClientCertificate, notifyClientVersion, notifyFallback, notifyOfferedCipherSuites, notifyOfferedCompressionMethods, processClientSupplementalData, supportsClientECCCapabilities
-
Methods inherited from class org.bouncycastle.crypto.tls.AbstractTlsPeer
notifyAlertRaised, notifyAlertReceived, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, 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.crypto.tls.TlsPeer
notifyAlertRaised, notifyAlertReceived, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, shouldUseGMTUnixTime
-
-
-
-
Field Detail
-
srpIdentityManager
protected TlsSRPIdentityManager srpIdentityManager
-
srpIdentity
protected byte[] srpIdentity
-
loginParameters
protected TlsSRPLoginParameters loginParameters
-
-
Constructor Detail
-
SRPTlsServer
public SRPTlsServer(TlsSRPIdentityManager srpIdentityManager)
-
SRPTlsServer
public SRPTlsServer(TlsCipherFactory cipherFactory, TlsSRPIdentityManager srpIdentityManager)
-
-
Method Detail
-
getDSASignerCredentials
protected TlsSignerCredentials getDSASignerCredentials() throws java.io.IOException
- Throws:
java.io.IOException
-
getRSASignerCredentials
protected TlsSignerCredentials getRSASignerCredentials() throws java.io.IOException
- Throws:
java.io.IOException
-
getCipherSuites
protected int[] getCipherSuites()
- Specified by:
getCipherSuitesin classAbstractTlsServer
-
processClientExtensions
public void processClientExtensions(java.util.Hashtable clientExtensions) throws java.io.IOException- Specified by:
processClientExtensionsin interfaceTlsServer- Overrides:
processClientExtensionsin classAbstractTlsServer- Throws:
java.io.IOException
-
getSelectedCipherSuite
public int getSelectedCipherSuite() throws java.io.IOException- Specified by:
getSelectedCipherSuitein interfaceTlsServer- Overrides:
getSelectedCipherSuitein classAbstractTlsServer- Throws:
java.io.IOException
-
getCredentials
public TlsCredentials getCredentials() throws java.io.IOException
- Throws:
java.io.IOException
-
getKeyExchange
public TlsKeyExchange getKeyExchange() throws java.io.IOException
- Throws:
java.io.IOException
-
createSRPKeyExchange
protected TlsKeyExchange createSRPKeyExchange(int keyExchange)
-
-