JavaScript is disabled on your browser.
JavaScript is disabled on your browser.
All Implemented Interfaces:
Serializable
, Callback
public class AuthorizeCallback
extends Object
implements Callback , Serializable
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).
Since:
1.5
See Also:
Serialized Form
Method Summary
Methods declared in class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Detail
AuthorizeCallback
public AuthorizeCallback(String authnID,
String authzID)
Constructs an instance of AuthorizeCallback
.
Parameters:
authnID
- The (authenticated) authentication id.
authzID
- The authorization id.
Method Detail
setAuthorizedID
public void setAuthorizedID(String id)
Sets the id of the authorized entity. Called by handler only when the id
is different from getAuthorizationID(). For example, the id
might need to be canonicalized for the environment in which it
will be used.
Parameters:
id
- The id of the authorized user.
See Also:
setAuthorized(boolean)
,
getAuthorizedID()
JavaScript is disabled on your browser.
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2018, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .
Scripting on this page tracks web page traffic, but does not change the content in any way.