18#ifndef _DECAF_NET_SSL_SSLSOCKET_H_
19#define _DECAF_NET_SSL_SSLSOCKET_H_
Represents an IP address.
Definition InetAddress.h:33
Definition SSLParameters.h:30
virtual void startHandshake()=0
Initiates a handshake for this SSL Connection, this can be necessary for several reasons such as usin...
virtual std::vector< std::string > getSupportedCipherSuites() const =0
Gets a vector containing the names of all the cipher suites that are supported by this SSLSocket.
virtual void setSSLParameters(const SSLParameters &value)
Sets the SSLParameters for this SSLSocket using the supplied SSLParameters instance.
SSLSocket(const std::string &host, int port, const InetAddress *localAddress, int localPort)
Creates a new SSLSocket instance and connects it to the given host and port.
virtual void setWantClientAuth(bool value)=0
Sets the Socket to request that a client authenticate itself by sending a valid Certificate that is t...
virtual void setNeedClientAuth(bool value)=0
Sets the Socket to require that a client authenticate itself by sending a valid Certificate that is t...
SSLSocket(const InetAddress *address, int port, const InetAddress *localAddress, int localPort)
Creates a new SSLSocket instance and connects it to the given address and port.
virtual bool getNeedClientAuth() const =0
Returns if this socket is configured to require client authentication, true means that is has and tha...
SSLSocket(const std::string &host, int port)
Creates a new SSLSocket instance and connects it to the given host and port.
virtual std::vector< std::string > getEnabledProtocols() const =0
Returns a vector containing the names of all the currently enabled Protocols for this SSL Socket.
virtual bool getWantClientAuth() const =0
Returns if this socket is configured to request client authentication, true means that is has and tha...
SSLSocket(const InetAddress *address, int port)
Creates a new SSLSocket instance and connects it to the given address and port.
virtual void setUseClientMode(bool value)=0
Determines the mode that the socket uses when a handshake is initiated, client or server.
virtual bool getUseClientMode() const =0
Gets whether this Socket is in Client or Server mode, true indicates that the mode is set to Client.
virtual SSLParameters getSSLParameters() const
Returns an SSLParameters object for this SSLSocket instance.
virtual void setEnabledCipherSuites(const std::vector< std::string > &suites)=0
Sets the Cipher Suites that are to be enabled on the SSL Socket connection.
virtual void setEnabledProtocols(const std::vector< std::string > &protocols)=0
Sets the Protocols that are to be enabled on the SSL Socket connection.
virtual std::vector< std::string > getEnabledCipherSuites() const =0
Returns a vector containing the names of all the currently enabled Cipher Suites for this SSL Socket.
virtual std::vector< std::string > getSupportedProtocols() const =0
Gets a vector containing the names of all the protocols that could be enabled for this SSLSocket inst...
#define DECAF_API
Definition Config.h:29
Definition SSLContext.h:27
Definition URLStreamHandlerManager.h:26
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25