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.StringgetCipherName()Get the name of the Cipher that is currently in use.java.lang.StringgetPeerHostname()java.lang.StringgetProtocolName()Get the name of the SSL protocol that is currently in use.voidsetPeerHostname(java.lang.String hostname)TransportWrapperwrap(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 becauseProtonSslEngineProvideris not part of the public Proton API.
-
-
Method Detail
-
wrap
public TransportWrapper wrap(TransportInput inputProcessor, TransportOutput outputProcessor)
- Specified by:
wrapin interfaceTransportLayer
-
getCipherName
public java.lang.String getCipherName()
Description copied from interface:SslGet 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:
getCipherNamein interfaceSsl- Returns:
- the name of the cipher in use, or null if none
-
getProtocolName
public java.lang.String getProtocolName()
Description copied from interface:SslGet 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:
getProtocolNamein interfaceSsl- Returns:
- the name of the protocol in use, or null if none
-
setPeerHostname
public void setPeerHostname(java.lang.String hostname)
- Specified by:
setPeerHostnamein interfaceSsl- Throws:
ProtonUnsupportedOperationException
-
getPeerHostname
public java.lang.String getPeerHostname()
- Specified by:
getPeerHostnamein interfaceSsl- Throws:
ProtonUnsupportedOperationException
-
-