Modifier and Type | Field and Description |
---|---|
protected TlsCipherFactory |
cipherFactory |
protected TlsClientContext |
context |
static Integer |
EXT_SRP |
protected byte[] |
identity |
protected byte[] |
password |
protected int |
selectedCipherSuite |
protected int |
selectedCompressionMethod |
Constructor and Description |
---|
SRPTlsClient(byte[] identity,
byte[] password) |
SRPTlsClient(TlsCipherFactory cipherFactory,
byte[] identity,
byte[] password) |
Modifier and Type | Method and Description |
---|---|
protected TlsKeyExchange |
createSRPKeyExchange(int keyExchange) |
TlsCipher |
getCipher() |
int[] |
getCipherSuites() |
Hashtable |
getClientExtensions() |
TlsCompression |
getCompression() |
short[] |
getCompressionMethods() |
TlsKeyExchange |
getKeyExchange() |
void |
init(TlsClientContext context) |
void |
notifySecureRenegotiation(boolean secureRenegotiation) |
void |
notifySelectedCipherSuite(int selectedCipherSuite) |
void |
notifySelectedCompressionMethod(short selectedCompressionMethod) |
void |
notifySessionID(byte[] sessionID) |
void |
processServerExtensions(Hashtable serverExtensions) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAuthentication
public static final Integer EXT_SRP
protected TlsCipherFactory cipherFactory
protected byte[] identity
protected byte[] password
protected TlsClientContext context
protected int selectedCompressionMethod
protected int selectedCipherSuite
public SRPTlsClient(byte[] identity, byte[] password)
public SRPTlsClient(TlsCipherFactory cipherFactory, byte[] identity, byte[] password)
public void init(TlsClientContext context)
public int[] getCipherSuites()
getCipherSuites
in interface TlsClient
public Hashtable getClientExtensions() throws IOException
getClientExtensions
in interface TlsClient
IOException
public short[] getCompressionMethods()
getCompressionMethods
in interface TlsClient
public void notifySessionID(byte[] sessionID)
notifySessionID
in interface TlsClient
public void notifySelectedCipherSuite(int selectedCipherSuite)
notifySelectedCipherSuite
in interface TlsClient
public void notifySelectedCompressionMethod(short selectedCompressionMethod)
notifySelectedCompressionMethod
in interface TlsClient
public void notifySecureRenegotiation(boolean secureRenegotiation) throws IOException
notifySecureRenegotiation
in interface TlsClient
IOException
public void processServerExtensions(Hashtable serverExtensions)
processServerExtensions
in interface TlsClient
public TlsKeyExchange getKeyExchange() throws IOException
getKeyExchange
in interface TlsClient
IOException
public TlsCompression getCompression() throws IOException
getCompression
in interface TlsClient
IOException
public TlsCipher getCipher() throws IOException
getCipher
in interface TlsClient
IOException
protected TlsKeyExchange createSRPKeyExchange(int keyExchange)
Copyright © 2015. All rights reserved.