Serializable, Callback
public class AuthorizeCallback extends Object implements 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 | Description | 
|---|---|
| AuthorizeCallback | Constructs an instance of  AuthorizeCallback. | 
| Modifier and Type | Method | 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 | Sets whether the authorization is allowed. | 
| void | setAuthorizedID | Sets the id of the authorized entity. | 
public AuthorizeCallback(String authnID, String authzID)
AuthorizeCallback.authnID - The (authenticated) authentication id.authzID - The authorization id.public String getAuthenticationID()
public String getAuthorizationID()
public boolean isAuthorized()
true if authorization is allowed; false otherwisepublic void setAuthorized(boolean ok)
ok - true if authorization is allowed; false otherwisepublic String getAuthorizedID()
null means the authorization failed.public void setAuthorizedID(String id)
id - The id of the authorized user.
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.security.sasl/javax/security/sasl/AuthorizeCallback.html