Package org.opends.server.extensions
Class SASLByteChannel
- java.lang.Object
-
- org.opends.server.extensions.SASLByteChannel
-
- All Implemented Interfaces:
ConnectionSecurityProvider
public final class SASLByteChannel extends Object implements ConnectionSecurityProvider
This class implements a SASL byte channel that can be used during confidentiality and integrity.
-
-
Method Summary
All Methods Static 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.static SASLByteChannelgetSASLByteChannel(ClientConnection c, String name, SASLContext context)Return a SASL byte channel instance created using the specified parameters.intgetSSF()Return a Security Strength Factor.booleanisSecure()Returntrueif a provider is secure.
-
-
-
Method Detail
-
getSASLByteChannel
public static SASLByteChannel getSASLByteChannel(ClientConnection c, String name, SASLContext context)
Return a SASL byte channel instance created using the specified parameters.- Parameters:
c- A client connection associated with the instance.name- The name of the instance (SASL mechanism name).context- A SASL context associated with the instance.- Returns:
- A SASL byte channel.
-
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.
-
-