Please note that this translation of the specification is the result of a java.net community project ( https://jdk5-api-pt-br.dev.java.net/ ). The official version of the specification is the US English language version which can be found at http://java.sun.com/j2se/1.5.0/docs/api/. In case of disputes, the authoritative version of the specification is the original, English document.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.security.sasl.AuthorizeCallback
public class 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 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 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)
authnID - The (authenticated) authentication id.authzID - The authorization id.| Method Detail |
|---|
public String getAuthenticationID()
public String getAuthorizationID()
public boolean isAuthorized()
setAuthorized(boolean),
getAuthorizedID()public void setAuthorized(boolean ok)
ok - true if authorization is allowed; false otherwiseisAuthorized(),
setAuthorizedID(java.lang.String)public String getAuthorizedID()
setAuthorized(boolean),
setAuthorizedID(java.lang.String)public void setAuthorizedID(String id)
id - The id of the authorized user.setAuthorized(boolean),
getAuthorizedID()
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
Copyright 2006 Sun Microsystems, Inc. Todos os direitos reservados. O uso está sujeito aos termos da licensa.