|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--javax.security.sasl.AuthorizeCallback
This callback is used by 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 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AuthorizeCallback(String authnID,
String authzID)
AuthorizeCallback.
authnID - The (authenticated) authentication idauthzID - The authorization id| Method Detail |
public String getAuthenticationID()
public String getAuthorizationID()
public boolean isAuthorized()
true if authorization is allowed;
false otherwisesetAuthorized(boolean),
getAuthorizedID()public void setAuthorized(boolean authorized)
authorized - true if authorization is allowed;
false otherwiseisAuthorized(),
setAuthorizedID(java.lang.String)public String getAuthorizedID()
null means the
authorization failed.setAuthorized(boolean),
setAuthorizedID(java.lang.String)public void setAuthorizedID(String id)
setAuthorized(boolean),
getAuthorizedID()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||