public abstract class AbstractSaslRequest extends Object implements 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.
|
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()
getAuthorizationId
in interface SaslRequest
public Control[] getControls()
getControls
in interface SaslRequest
public byte[] getCredentials()
getCredentials
in interface SaslRequest
public SaslQoP getQualityOfProtection()
getQualityOfProtection
in interface SaslRequest
public String getRealmName()
getRealmName
in interface SaslRequest
public String getSaslMechanism()
getSaslMechanism
in interface SaslRequest
public SaslSecurityStrength getSecurityStrength()
getSecurityStrength
in interface SaslRequest
public String getUsername()
getUsername
in interface SaslRequest
public boolean isMutualAuthentication()
isMutualAuthentication
in interface SaslRequest
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–2020 The Apache Software Foundation. All rights reserved.