Class SslImpl
- java.lang.Object
-
- org.apache.qpid.proton.engine.impl.ssl.SslImpl
-
- All Implemented Interfaces:
TransportLayer
,Ssl
public class SslImpl extends java.lang.Object implements Ssl, TransportLayer
-
-
Constructor Summary
Constructors Constructor Description SslImpl(SslDomain domain, SslPeerDetails peerDetails)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCipherName()
Get the name of the Cipher that is currently in use.java.lang.String
getPeerHostname()
java.lang.String
getProtocolName()
Get the name of the SSL protocol that is currently in use.void
setPeerHostname(java.lang.String hostname)
TransportWrapper
wrap(TransportInput inputProcessor, TransportOutput outputProcessor)
-
-
-
Constructor Detail
-
SslImpl
public SslImpl(SslDomain domain, SslPeerDetails peerDetails)
- Parameters:
domain
- must implementProtonSslEngineProvider
. This is not possible enforce at the API level becauseProtonSslEngineProvider
is not part of the public Proton API.
-
-
Method Detail
-
wrap
public TransportWrapper wrap(TransportInput inputProcessor, TransportOutput outputProcessor)
- Specified by:
wrap
in interfaceTransportLayer
-
getCipherName
public java.lang.String getCipherName()
Description copied from interface:Ssl
Get the name of the Cipher that is currently in use. Gets a text description of the cipher that is currently active, or returns null if SSL is not active (no cipher). Note that the cipher in use may change over time due to renegotiation or other changes to the SSL state.- Specified by:
getCipherName
in interfaceSsl
- Returns:
- the name of the cipher in use, or null if none
-
getProtocolName
public java.lang.String getProtocolName()
Description copied from interface:Ssl
Get the name of the SSL protocol that is currently in use. Gets a text description of the SSL protocol that is currently active, or null if SSL is not active. Note that the protocol may change over time due to renegotiation.- Specified by:
getProtocolName
in interfaceSsl
- Returns:
- the name of the protocol in use, or null if none
-
setPeerHostname
public void setPeerHostname(java.lang.String hostname)
- Specified by:
setPeerHostname
in interfaceSsl
- Throws:
ProtonUnsupportedOperationException
-
getPeerHostname
public java.lang.String getPeerHostname()
- Specified by:
getPeerHostname
in interfaceSsl
- Throws:
ProtonUnsupportedOperationException
-
-