public interface DTLSContextManager
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) |
DTLSContext createContext(String privateKey, String certificate, String[] trustedCertificates) throws GeneralSecurityException, IOException
privateKey
- certificate
- trustedCertificates
- GeneralSecurityException
IOException
DTLSContext createContext(@Nullable String protocol, String privateKey, String certificate, String[] trustedCertificates) throws GeneralSecurityException, IOException
protocol
- when null, calls getDefault method to get the DTLSContext.privateKey
- certificate
- trustedCertificates
- GeneralSecurityException
IOException