public class DefaultDTLSContextManager extends Object implements DTLSContextManager
Constructor and Description |
---|
DefaultDTLSContextManager() |
Modifier and Type | Method and Description |
---|---|
DTLSContext |
createContext(String privateKey,
String certificate,
String[] trustedCertificates)
Will use default protocol.
|
DTLSContext |
createContext(String protocol,
String privateKey,
String certificate,
String[] trustedCertificates) |
public DTLSContext createContext(String privateKey, String certificate, String[] trustedCertificates) throws GeneralSecurityException, IOException
DTLSContextManager
createContext
in interface DTLSContextManager
GeneralSecurityException
IOException
public DTLSContext createContext(String protocol, String privateKey, String certificate, String[] trustedCertificates) throws GeneralSecurityException, IOException
createContext
in interface DTLSContextManager
protocol
- when null, calls getDefault method to get the DTLSContext.GeneralSecurityException
IOException