Package org.bouncycastle.tls
Class TlsSRPKeyExchange
java.lang.Object
org.bouncycastle.tls.AbstractTlsKeyExchange
org.bouncycastle.tls.TlsSRPKeyExchange
- All Implemented Interfaces:
TlsKeyExchange
(D)TLS SRP key exchange (RFC 5054).
-
Field Summary
Modifier and TypeFieldDescriptionprotected TlsCertificate
protected TlsCredentialedSigner
protected TlsSRP6Client
protected TlsSRPConfigVerifier
protected TlsSRPIdentity
protected TlsSRPLoginParameters
protected BigInteger
protected byte[]
protected TlsSRP6Server
Fields inherited from class org.bouncycastle.tls.AbstractTlsKeyExchange
context, keyExchange
-
Constructor Summary
ConstructorDescriptionTlsSRPKeyExchange
(int keyExchange, TlsSRPIdentity srpIdentity, TlsSRPConfigVerifier srpConfigVerifier) TlsSRPKeyExchange
(int keyExchange, TlsSRPLoginParameters srpLoginParameters) -
Method Summary
Modifier and TypeMethodDescriptionvoid
byte[]
void
processClientCredentials
(TlsCredentials clientCredentials) void
void
processServerCertificate
(Certificate serverCertificate) void
processServerCredentials
(TlsCredentials serverCredentials) void
boolean
void
protected static BigInteger
validatePublicValue
(BigInteger N, BigInteger val) Methods inherited from class org.bouncycastle.tls.AbstractTlsKeyExchange
getClientCertificateTypes, init, processClientCertificate, requiresCertificateVerify, skipClientCredentials, skipServerKeyExchange
-
Field Details
-
srpIdentity
-
srpConfigVerifier
-
serverCertificate
-
srpSalt
protected byte[] srpSalt -
srpClient
-
srpLoginParameters
-
serverCredentials
-
srpServer
-
srpPeerCredentials
-
-
Constructor Details
-
TlsSRPKeyExchange
public TlsSRPKeyExchange(int keyExchange, TlsSRPIdentity srpIdentity, TlsSRPConfigVerifier srpConfigVerifier) -
TlsSRPKeyExchange
-
-
Method Details
-
skipServerCredentials
- Throws:
IOException
-
processServerCredentials
- Throws:
IOException
-
processServerCertificate
- Specified by:
processServerCertificate
in interfaceTlsKeyExchange
- Overrides:
processServerCertificate
in classAbstractTlsKeyExchange
- Throws:
IOException
-
requiresServerKeyExchange
public boolean requiresServerKeyExchange()- Specified by:
requiresServerKeyExchange
in interfaceTlsKeyExchange
- Overrides:
requiresServerKeyExchange
in classAbstractTlsKeyExchange
-
generateServerKeyExchange
- Specified by:
generateServerKeyExchange
in interfaceTlsKeyExchange
- Overrides:
generateServerKeyExchange
in classAbstractTlsKeyExchange
- Throws:
IOException
-
processServerKeyExchange
- Specified by:
processServerKeyExchange
in interfaceTlsKeyExchange
- Overrides:
processServerKeyExchange
in classAbstractTlsKeyExchange
- Throws:
IOException
-
processClientCredentials
- Throws:
IOException
-
generateClientKeyExchange
- Throws:
IOException
-
processClientKeyExchange
- Specified by:
processClientKeyExchange
in interfaceTlsKeyExchange
- Overrides:
processClientKeyExchange
in classAbstractTlsKeyExchange
- Throws:
IOException
-
generatePreMasterSecret
- Throws:
IOException
-
validatePublicValue
- Throws:
IOException
-