Package org.opends.server.extensions
Class TLSByteChannel
- java.lang.Object
-
- org.opends.server.extensions.TLSByteChannel
-
- All Implemented Interfaces:
ConnectionSecurityProvider
public final class TLSByteChannel extends Object implements ConnectionSecurityProvider
A class that provides a TLS byte channel implementation.
-
-
Constructor Summary
Constructors Constructor Description TLSByteChannel(ByteChannel channel, SSLEngine sslEngine)Creates an TLS byte channel instance using the specified LDAP connection configuration, client connection, SSL context and socket channel parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteChannelgetChannel()Returns the security provider's byte channel.Certificate[]getClientCertificateChain()Return a certificate chain array.StringgetName()Return the name of a provider.intgetSSF()Return a Security Strength Factor.booleanisSecure()Returntrueif a provider is secure.
-
-
-
Constructor Detail
-
TLSByteChannel
public TLSByteChannel(ByteChannel channel, SSLEngine sslEngine)
Creates an TLS byte channel instance using the specified LDAP connection configuration, client connection, SSL context and socket channel parameters.- Parameters:
channel- The underlying channel.sslEngine- The SSL engine to use.
-
-
Method Detail
-
getChannel
public ByteChannel getChannel()
Description copied from interface:ConnectionSecurityProviderReturns the security provider's byte channel.- Specified by:
getChannelin interfaceConnectionSecurityProvider- Returns:
- The security provider's byte channel.
-
getClientCertificateChain
public Certificate[] getClientCertificateChain()
Description copied from interface:ConnectionSecurityProviderReturn a certificate chain array.- Specified by:
getClientCertificateChainin interfaceConnectionSecurityProvider- Returns:
- A certificate chain array.
-
getName
public String getName()
Description copied from interface:ConnectionSecurityProviderReturn the name of a provider.- Specified by:
getNamein interfaceConnectionSecurityProvider- Returns:
- String representing the name of a provider.
-
getSSF
public int getSSF()
Description copied from interface:ConnectionSecurityProviderReturn a Security Strength Factor.- Specified by:
getSSFin interfaceConnectionSecurityProvider- Returns:
- Integer representing the current SSF of a provider.
-
isSecure
public boolean isSecure()
Description copied from interface:ConnectionSecurityProviderReturntrueif a provider is secure.- Specified by:
isSecurein interfaceConnectionSecurityProvider- Returns:
trueif a provider is secure.
-
-