|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.ldap.client.api.SaslRequest
public abstract class SaslRequest
Holds the data required to complete the SASL operation
| Field Summary | |
|---|---|
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 |
| Constructor Summary | |
|---|---|
protected |
SaslRequest(String saslMechanism)
Creates a new instance of SaslRequest. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
protected SaslRequest(String saslMechanism)
saslMechanism - the SASL mechanism| Method Detail |
|---|
public 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()
public org.apache.directory.api.ldap.model.message.Control[] getControls()
public byte[] getCredentials()
public org.apache.directory.api.ldap.model.constants.SaslQoP getQualityOfProtection()
public String getRealmName()
public String getSaslMechanism()
public org.apache.directory.api.ldap.model.constants.SaslSecurityStrength getSecurityStrength()
public String getUsername()
public boolean isMutualAuthentication()
public 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 username
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||