Class AbstractSaslRequest
- java.lang.Object
-
- org.apache.directory.ldap.client.api.AbstractSaslRequest
-
- All Implemented Interfaces:
SaslRequest
- Direct Known Subclasses:
SaslCramMd5Request
,SaslDigestMd5Request
,SaslExternalRequest
,SaslGssApiRequest
,SaslPlainRequest
public abstract class AbstractSaslRequest extends Object implements SaslRequest
Holds the data required to complete the SASL operation- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAllControls(Control[] controls)
Adds the given controls.void
addControl(Control control)
Adds the given control.String
getAuthorizationId()
Gets the authorization ID.Control[]
getControls()
Gets the controls.byte[]
getCredentials()
Gets the crendentialsSaslQoP
getQualityOfProtection()
Gets the quality of protection.String
getRealmName()
Gets realm name.String
getSaslMechanism()
Gets the SASL mechanism.SaslSecurityStrength
getSecurityStrength()
Gets the security strength.String
getUsername()
Gets the username.boolean
isMutualAuthentication()
Indicates if mutual authentication is required.void
setAuthorizationId(String authorizationId)
Sets the Authorization IDvoid
setCredentials(byte[] credentials)
Sets the credentials.void
setCredentials(String credentials)
Sets the credentials.void
setMutualAuthentication(boolean mutualAuthentication)
Sets the flag indicating if mutual authentication is required.void
setQualityOfProtection(SaslQoP qualityOfProtection)
Sets the quality of protection.void
setSecurityStrength(SaslSecurityStrength securityStrength)
Sets the security strength.void
setUsername(String username)
Sets the username.
-
-
-
Method Detail
-
addAllControls
public void addAllControls(Control[] controls)
Adds the given controls.- Parameters:
controls
- the controls
-
addControl
public void addControl(Control control)
Adds the given control.- Parameters:
control
- the control
-
getAuthorizationId
public String getAuthorizationId()
Gets the authorization ID.- Specified by:
getAuthorizationId
in interfaceSaslRequest
- Returns:
- the authorization ID
-
getControls
public Control[] getControls()
Gets the controls.- Specified by:
getControls
in interfaceSaslRequest
- Returns:
- the controls
-
getCredentials
public byte[] getCredentials()
Gets the crendentials- Specified by:
getCredentials
in interfaceSaslRequest
- Returns:
- the credentials
-
getQualityOfProtection
public SaslQoP getQualityOfProtection()
Gets the quality of protection.- Specified by:
getQualityOfProtection
in interfaceSaslRequest
- Returns:
- the quality of protection
-
getRealmName
public String getRealmName()
Gets realm name.- Specified by:
getRealmName
in interfaceSaslRequest
- Returns:
- the realm name
-
getSaslMechanism
public String getSaslMechanism()
Gets the SASL mechanism.- Specified by:
getSaslMechanism
in interfaceSaslRequest
- Returns:
- the SASL mechanism
-
getSecurityStrength
public SaslSecurityStrength getSecurityStrength()
Gets the security strength.- Specified by:
getSecurityStrength
in interfaceSaslRequest
- Returns:
- the security strength
-
getUsername
public String getUsername()
Gets the username.- Specified by:
getUsername
in interfaceSaslRequest
- Returns:
- the username
-
isMutualAuthentication
public boolean isMutualAuthentication()
Indicates if mutual authentication is required.- Specified by:
isMutualAuthentication
in interfaceSaslRequest
- Returns:
- the flag indicating if mutual authentication is required
-
setAuthorizationId
public void setAuthorizationId(String authorizationId)
Sets the Authorization ID- Parameters:
authorizationId
- The authorization ID
-
setCredentials
public void setCredentials(byte[] credentials)
Sets the credentials.- Parameters:
credentials
- the credentials
-
setCredentials
public void setCredentials(String credentials)
Sets the credentials.- Parameters:
credentials
- the credentials
-
setMutualAuthentication
public void setMutualAuthentication(boolean mutualAuthentication)
Sets the flag indicating if mutual authentication is required.- Parameters:
mutualAuthentication
- the flag indicating if mutual authentication is required
-
setQualityOfProtection
public void setQualityOfProtection(SaslQoP qualityOfProtection)
Sets the quality of protection.- Parameters:
qualityOfProtection
- the quality of protection
-
setSecurityStrength
public void setSecurityStrength(SaslSecurityStrength securityStrength)
Sets the security strength.- Parameters:
securityStrength
- the security strength
-
setUsername
public void setUsername(String username)
Sets the username.- Parameters:
username
- the username
-
-