public class AuthorizeCallback extends Object implements Callback, Serializable
SaslServer使用此回调来确定一个实体(通过认证身份验证身份标识)是否可以代表另一个实体(由授权标识标识)。
| Constructor and Description |
|---|
AuthorizeCallback(String authnID, String authzID)
构造的一个实例
AuthorizeCallback 。
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationID()
返回要检查的身份验证ID。
|
String |
getAuthorizationID()
返回要检查的授权ID。
|
String |
getAuthorizedID()
返回授权用户的ID。
|
boolean |
isAuthorized()
确定验证ID是否被允许代表授权ID进行操作。
|
void |
setAuthorized(boolean ok)
设置是否允许授权。
|
void |
setAuthorizedID(String id)
设置授权实体的ID。
|
public String getAuthenticationID()
public String getAuthorizationID()
public boolean isAuthorized()
true如果允许授权;
false否则
setAuthorized(boolean) ,
getAuthorizedID()
public void setAuthorized(boolean ok)
ok - true如果允许授权;
false否则
isAuthorized() ,
setAuthorizedID(java.lang.String)
public String getAuthorizedID()
null表示授权失败。
setAuthorized(boolean) ,
setAuthorizedID(java.lang.String)
public void setAuthorizedID(String id)
id - 授权用户的ID。
setAuthorized(boolean) ,
getAuthorizedID()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.