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
DTLSContextManagercreateContext in interface DTLSContextManagerGeneralSecurityExceptionIOExceptionpublic DTLSContext createContext(String protocol, String privateKey, String certificate, String[] trustedCertificates) throws GeneralSecurityException, IOException
createContext in interface DTLSContextManagerprotocol - when null, calls getDefault method to get the DTLSContext.GeneralSecurityExceptionIOException