public abstract class SaslRequest extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
authorizationId
The authorization ID of the entity
|
protected List<Control> |
controls
The list of controls
|
protected byte[] |
credentials
The credentials
|
protected boolean |
mutualAuthentication
Require mutual authentication
|
protected 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 SaslSecurityStrength |
securityStrength
The security strength
|
protected String |
username
The username
|
Modifier | Constructor and Description |
---|---|
protected |
SaslRequest(String saslMechanism)
Creates a new instance of SaslRequest.
|
Modifier and Type | Method and 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 crendentials
|
SaslQoP |
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 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(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(SaslSecurityStrength securityStrength)
Sets the security strength.
|
void |
setUsername(String username)
Sets the username.
|
protected String saslMechanism
protected byte[] credentials
protected String authorizationId
protected SaslQoP qualityOfProtection
protected SaslSecurityStrength securityStrength
protected boolean mutualAuthentication
protected SaslRequest(String saslMechanism)
saslMechanism
- the SASL mechanismpublic void addAllControls(Control[] controls)
controls
- the controlspublic void addControl(Control control)
control
- the controlpublic String getAuthorizationId()
public Control[] getControls()
public byte[] getCredentials()
public SaslQoP getQualityOfProtection()
public String getRealmName()
public String getSaslMechanism()
public 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(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(SaslSecurityStrength securityStrength)
securityStrength
- the security strengthpublic void setUsername(String username)
username
- the usernameCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.