public class DTLSContext extends SSLContext
| Modifier | Constructor and Description | 
|---|---|
| protected  | DTLSContext()Allows classes that extend DTLSContext to define a public constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| static DTLSContext | getDefaultDTLSInstance()Returns the default DTLS context. | 
| static DTLSContext | getDTLSInstance(String protocol)Returns a  DTLSContextobject that implements the specified secure socket protocol. | 
| DTLSServerSocketFactory | getDTLSServerSocketFactory()Returns a  DTLSServerSocketFactoryobject for this context. | 
| DTLSSocketFactory | getDTLSSocketFactory()Returns a  DTLSSocketFactoryobject for this context. | 
getDefault, getInstance, getProtocol, getServerSocketFactory, getSocketFactory, initprotected DTLSContext()
public 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