public abstract class SaslRequest extends Object
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.
|
void |
setSecurityStrength(SaslSecurityStrength securityStrength)
Sets the security strength.
|
void |
setUsername(String username)
Sets the username.
|
public 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 protectionpublic void setSecurityStrength(SaslSecurityStrength securityStrength)
securityStrength
- the security strengthpublic void setUsername(String username)
username
- the usernameCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.