public class TLSEnabledSocketHandler extends AbstractSecureSocketHandler
SocketHandlerCONTEXT| Constructor and Description |
|---|
TLSEnabledSocketHandler(NodeAuthModuleContext context)
Default constructor for the TLS-enabled Socket Handler
|
| Modifier and Type | Method and Description |
|---|---|
protected SSLSocket |
createSecureSocket(String host,
int port,
SecurityDomain securityDomain,
Socket nestedSocket)
Creates a TLS-enabled secure socket for a given URI and SecurityDomain configuration
|
InputStream |
getInputStream(URI uri)
Negotiates and creates a socket for a given URI and returns the InputStream
associated with the socket.
|
InputStream |
getInputStream(URI uri,
SecurityDomain securityDomain)
TODO: To be removed in the 2009 post-Connectathon Branch
|
createSocket, createSocketFromFactory, getSocket, getSocket, getSocket, getSocket, getSocketpublic TLSEnabledSocketHandler(NodeAuthModuleContext context)
context - The NodeAuth Module Context to useprotected SSLSocket createSecureSocket(String host, int port, SecurityDomain securityDomain, Socket nestedSocket) throws NoSecurityDomainException, NoSuchAlgorithmException, KeyManagementException, UnknownHostException, IOException
AbstractSecureSocketHandlercreateSecureSocket in class AbstractSecureSocketHandlerhost - Host to connect toport - Port to connect tosecurityDomain - Configuration options to use when securing the socketNoSecurityDomainExceptionNoSuchAlgorithmExceptionKeyManagementExceptionUnknownHostExceptionIOExceptionpublic InputStream getInputStream(URI uri, SecurityDomain securityDomain) throws NoSecurityDomainException, MalformedURLException, IOException, NoSuchAlgorithmException
uri - The URI for which to open the socketsecurityDomain - Security Domain config to use in securing the socketNoSecurityDomainExceptionMalformedURLExceptionIOExceptionNoSuchAlgorithmExceptionpublic InputStream getInputStream(URI uri) throws Exception
SocketHandleruri - The URI for which to open the socketExceptionCopyright © 2016 Open eHealth Foundation. All rights reserved.