org.bouncycastle.crypto.tls
Class AbstractTlsKeyExchange
java.lang.Object
org.bouncycastle.crypto.tls.AbstractTlsKeyExchange
- All Implemented Interfaces:
- TlsKeyExchange
- Direct Known Subclasses:
- TlsDHKeyExchange, TlsECDHKeyExchange, TlsPSKKeyExchange, TlsRSAKeyExchange, TlsSRPKeyExchange
public abstract class AbstractTlsKeyExchange
- extends java.lang.Object
- implements TlsKeyExchange
|
Constructor Summary |
protected |
AbstractTlsKeyExchange(int keyExchange,
java.util.Vector supportedSignatureAlgorithms)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
keyExchange
protected int keyExchange
supportedSignatureAlgorithms
protected java.util.Vector supportedSignatureAlgorithms
context
protected TlsContext context
AbstractTlsKeyExchange
protected AbstractTlsKeyExchange(int keyExchange,
java.util.Vector supportedSignatureAlgorithms)
init
public void init(TlsContext context)
- Specified by:
init in interface TlsKeyExchange
processServerCertificate
public void processServerCertificate(Certificate serverCertificate)
throws java.io.IOException
- Specified by:
processServerCertificate in interface TlsKeyExchange
- Throws:
java.io.IOException
processServerCredentials
public void processServerCredentials(TlsCredentials serverCredentials)
throws java.io.IOException
- Specified by:
processServerCredentials in interface TlsKeyExchange
- Throws:
java.io.IOException
requiresServerKeyExchange
public boolean requiresServerKeyExchange()
- Specified by:
requiresServerKeyExchange in interface TlsKeyExchange
generateServerKeyExchange
public byte[] generateServerKeyExchange()
throws java.io.IOException
- Specified by:
generateServerKeyExchange in interface TlsKeyExchange
- Throws:
java.io.IOException
skipServerKeyExchange
public void skipServerKeyExchange()
throws java.io.IOException
- Specified by:
skipServerKeyExchange in interface TlsKeyExchange
- Throws:
java.io.IOException
processServerKeyExchange
public void processServerKeyExchange(java.io.InputStream input)
throws java.io.IOException
- Specified by:
processServerKeyExchange in interface TlsKeyExchange
- Throws:
java.io.IOException
skipClientCredentials
public void skipClientCredentials()
throws java.io.IOException
- Specified by:
skipClientCredentials in interface TlsKeyExchange
- Throws:
java.io.IOException
processClientCertificate
public void processClientCertificate(Certificate clientCertificate)
throws java.io.IOException
- Specified by:
processClientCertificate in interface TlsKeyExchange
- Throws:
java.io.IOException
processClientKeyExchange
public void processClientKeyExchange(java.io.InputStream input)
throws java.io.IOException
- Specified by:
processClientKeyExchange in interface TlsKeyExchange
- Throws:
java.io.IOException