public class AuthorizeCallback extends Object implements Callback, Serializable
SaslServer
判断一个实体(由经过认证的认证ID标识)可以代表另一个实体(由授权ID标识)。
Constructor and Description |
---|
AuthorizeCallback(String authnID, String authzID)
构建
AuthorizeCallback 实例。
|
Modifier and Type | Method and Description |
---|---|
String |
getAuthenticationID()
返回要检查的身份验证身份证。
|
String |
getAuthorizationID()
返回要检查的授权标识。
|
String |
getAuthorizedID()
返回授权用户的身份证。
|
boolean |
isAuthorized()
确定身份验证是否允许代表身份验证身份证号。
|
void |
setAuthorized(boolean ok)
设置是否允许授权。
|
void |
setAuthorizedID(String 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.