SaslServer to determine whether
one entity (identified by an authenticated authentication id)
can act on
behalf of another entity (identified by an authorization id).
| Modifier and Type | Field and Description |
|---|---|
| private String | authenticationID
The (authenticated) authentication id to check. |
| private String | authorizationID
The authorization id to check. |
| private boolean | authorized
A flag indicating whether the authentication id is allowed to act on behalf of the authorization id. |
| private String | authorizedID
The id of the authorized entity. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | AuthorizeCallback(String
The (authenticated) authentication id. authnID, String The authorization id. authzID)Constructs an instance of |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The authentication id to check.Returns the authentication id to check. |
| public String | |
| public String | Returns: The id of the authorized user.null means the
authorization failed.Returns the id of the authorized user. |
| public boolean | Returns: true if authorization is allowed; false otherwiseDetermines whether the authentication id is allowed to act on behalf of the authorization id. |
| public void | setAuthorized(boolean
true if authorization is allowed; false otherwiseSets whether the authorization is allowed. |
| public void |
| authenticationID | back to summary |
|---|---|
| private String authenticationID The (authenticated) authentication id to check. | |
| authorizationID | back to summary |
|---|---|
| private String authorizationID The authorization id to check. | |
| authorized | back to summary |
|---|---|
| private boolean authorized A flag indicating whether the authentication id is allowed to act on behalf of the authorization id. | |
| authorizedID | back to summary |
|---|---|
| private String authorizedID The id of the authorized entity. If null, the id of the authorized entity is authorizationID. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID
| |
| AuthorizeCallback | back to summary |
|---|---|
| public AuthorizeCallback(String authnID, String authzID) Constructs an instance of | |
| getAuthenticationID | back to summary |
|---|---|
| public String getAuthenticationID() Returns the authentication id to check.
| |
| getAuthorizationID | back to summary |
|---|---|
| public String getAuthorizationID() Returns the authorization id to check.
| |
| getAuthorizedID | back to summary |
|---|---|
| public String getAuthorizedID() Returns the id of the authorized user.
| |
| isAuthorized | back to summary |
|---|---|
| public boolean isAuthorized() Determines whether the authentication id is allowed to act on behalf of the authorization id.
| |
| setAuthorized | back to summary |
|---|---|
| public void setAuthorized(boolean ok) Sets whether the authorization is allowed.
| |
| setAuthorizedID | back to summary |
|---|---|
| public void setAuthorizedID(String id) Sets the id of the authorized entity. Called by handler only when the id is different from getAuthorizationID(). For example, the id might need to be canonicalized for the environment in which it will be used.
| |