public class DTLSContext extends SSLContext
| Modifier and Type | Method and Description | 
|---|---|
static DTLSContext | 
getDefaultDTLSInstance()
Returns the default DTLS context. 
 | 
static DTLSContext | 
getDTLSInstance(String protocol)
Returns a  
DTLSContext object that implements the specified secure socket protocol. | 
DTLSServerSocketFactory | 
getDTLSServerSocketFactory()
Returns a  
DTLSServerSocketFactory object for this context. | 
DTLSSocketFactory | 
getDTLSSocketFactory()
Returns a  
DTLSSocketFactory object for this context. | 
getDefault, getInstance, getProtocol, getServerSocketFactory, getSocketFactory, initpublic static DTLSContext getDefaultDTLSInstance() throws NoSuchAlgorithmException
NoSuchAlgorithmException - if the DTLSContext.getDTLSInstance() call failspublic static DTLSContext getDTLSInstance(String protocol) throws NoSuchAlgorithmException
DTLSContext object that implements the specified secure socket protocol.protocol - the standard name of the requested protocol.DTLSContext object.NoSuchAlgorithmException - if no Provider supports a SSLContextSpi implementation for the specified protocol.NullPointerException - if protocol is null.public final DTLSServerSocketFactory getDTLSServerSocketFactory()
DTLSServerSocketFactory object for this context.DTLSServerSocketFactory objectpublic final DTLSSocketFactory getDTLSSocketFactory()
DTLSSocketFactory object for this context.DTLSSocketFactory object