public class AuthorizeCallback extends Objectimplements Callback , Serializable
SaslServer to determine whether one entity (identified by an authenticated authentication id) can act on behalf of another entity (identified by an authorization id).
| Constructor and Description |
|---|
AuthorizeCallback(String
Constructs an instance of
AuthorizeCallback.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationID()
Returns the authentication id to check.
|
String |
getAuthorizationID()
Returns the authorization id to check.
|
String |
getAuthorizedID()
Returns the id of the authorized user.
|
boolean |
isAuthorized()
Determines whether the authentication id is allowed to act on behalf of the authorization id.
|
void |
setAuthorized(boolean ok)
Sets whether the authorization is allowed.
|
void |
setAuthorizedID(String
Sets the id of the authorized entity.
|
public StringgetAuthenticationID()
public StringgetAuthorizationID()
public boolean isAuthorized()
true if authorization is allowed;
false otherwise
setAuthorized(boolean),
getAuthorizedID()
public void setAuthorized(boolean ok)
ok -
true if authorization is allowed;
false otherwise
isAuthorized(),
setAuthorizedID(java.lang.String)
public StringgetAuthorizedID()
null means the authorization failed.
setAuthorized(boolean),
setAuthorizedID(java.lang.String)
public void setAuthorizedID(Stringid)
id - The id of the authorized user.
setAuthorized(boolean),
getAuthorizedID()