javax.security.sasl
public class AuthorizeCallback extends Object implements Callback, Serializable
Since: 1.5
Constructor Summary | |
---|---|
AuthorizeCallback(String authnID, String authzID)
Constructs an instance of AuthorizeCallback .
|
Method Summary | |
---|---|
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 if the identity represented by authentication ID is allowed to
act on behalf of the authorization ID.
|
void | setAuthorized(boolean authorized)
Sets if authorization is allowed or not.
|
void | setAuthorizedID(String id)
Sets the ID of the authorized entity. |
AuthorizeCallback
.
Parameters: authnID the (authenticated) authentication ID. authzID the authorization ID.
Returns: the authentication ID to check
Returns: the authorization ID to check.
Returns: the ID of the authorized user. null
means the
authorization failed.
See Also: AuthorizeCallback setAuthorizedID
Returns: true
if authorization is allowed; false
otherwise.
See Also: AuthorizeCallback getAuthorizedID
Parameters: authorized true
if authorization is allowed;
false
otherwise.
See Also: isAuthorized setAuthorizedID
See Also: AuthorizeCallback getAuthorizedID