public abstract class AbstractSaslRequest extends Object implements SaslRequest
| Modifier and Type | Field and Description |
|---|---|
protected String |
authorizationId
The authorization ID of the entity
|
protected List<org.apache.directory.api.ldap.model.message.Control> |
controls
The list of controls
|
protected byte[] |
credentials
The credentials
|
protected boolean |
mutualAuthentication
Require mutual authentication
|
protected org.apache.directory.api.ldap.model.constants.SaslQoP |
qualityOfProtection
The quality of protection
|
protected String |
realmName
The realm name on the server
|
protected String |
saslMechanism
The mechanism used to decode user identity
|
protected org.apache.directory.api.ldap.model.constants.SaslSecurityStrength |
securityStrength
The security strength
|
protected String |
username
The username
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSaslRequest(String saslMechanism)
Creates a new instance of SaslRequest.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllControls(org.apache.directory.api.ldap.model.message.Control[] controls)
Adds the given controls.
|
void |
addControl(org.apache.directory.api.ldap.model.message.Control control)
Adds the given control.
|
String |
getAuthorizationId()
Gets the authorization ID.
|
org.apache.directory.api.ldap.model.message.Control[] |
getControls()
Gets the controls.
|
byte[] |
getCredentials()
Gets the crendentials
|
org.apache.directory.api.ldap.model.constants.SaslQoP |
getQualityOfProtection()
Gets the quality of protection.
|
String |
getRealmName()
Gets realm name.
|
String |
getSaslMechanism()
Gets the SASL mechanism.
|
org.apache.directory.api.ldap.model.constants.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 ID
|
void |
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(org.apache.directory.api.ldap.model.constants.SaslQoP qualityOfProtection)
Sets the quality of protection.
|
protected void |
setRealmName(String realmName)
Sets the realm name.
|
protected void |
setSaslMechanism(String saslMechanism)
Sets the SASL mechanism
|
void |
setSecurityStrength(org.apache.directory.api.ldap.model.constants.SaslSecurityStrength securityStrength)
Sets the security strength.
|
void |
setUsername(String username)
Sets the username.
|
protected String saslMechanism
protected List<org.apache.directory.api.ldap.model.message.Control> controls
protected String username
protected byte[] credentials
protected String realmName
protected String authorizationId
protected org.apache.directory.api.ldap.model.constants.SaslQoP qualityOfProtection
protected org.apache.directory.api.ldap.model.constants.SaslSecurityStrength securityStrength
protected boolean mutualAuthentication
protected AbstractSaslRequest(String saslMechanism)
saslMechanism - the SASL mechanismpublic void addAllControls(org.apache.directory.api.ldap.model.message.Control[] controls)
controls - the controlspublic void addControl(org.apache.directory.api.ldap.model.message.Control control)
control - the controlpublic String getAuthorizationId()
getAuthorizationId in interface SaslRequestpublic org.apache.directory.api.ldap.model.message.Control[] getControls()
getControls in interface SaslRequestpublic byte[] getCredentials()
getCredentials in interface SaslRequestpublic org.apache.directory.api.ldap.model.constants.SaslQoP getQualityOfProtection()
getQualityOfProtection in interface SaslRequestpublic String getRealmName()
getRealmName in interface SaslRequestpublic String getSaslMechanism()
getSaslMechanism in interface SaslRequestpublic org.apache.directory.api.ldap.model.constants.SaslSecurityStrength getSecurityStrength()
getSecurityStrength in interface SaslRequestpublic String getUsername()
getUsername in interface SaslRequestpublic boolean isMutualAuthentication()
isMutualAuthentication in interface SaslRequestpublic void setAuthorizationId(String authorizationId)
authorizationId - The authorization IDpublic void setCredentials(byte[] credentials)
credentials - the credentialspublic void setCredentials(String credentials)
credentials - the credentialspublic void setMutualAuthentication(boolean mutualAuthentication)
mutualAuthentication - the flag indicating if mutual authentication is requiredpublic void setQualityOfProtection(org.apache.directory.api.ldap.model.constants.SaslQoP qualityOfProtection)
qualityOfProtection - the quality of protectionprotected void setRealmName(String realmName)
realmName - The realm nameprotected void setSaslMechanism(String saslMechanism)
saslMechanism - the SASL mechanismpublic void setSecurityStrength(org.apache.directory.api.ldap.model.constants.SaslSecurityStrength securityStrength)
securityStrength - the security strengthpublic void setUsername(String username)
username - the usernameCopyright © 2009–2019 The Apache Software Foundation. All rights reserved.