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).
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).
(->authorize-callback authn-id authz-id)
Constructor.
Constructs an instance of AuthorizeCallback.
authn-id - The (authenticated) authentication id. - java.lang.String
authz-id - The authorization id. - java.lang.String
Constructor. Constructs an instance of AuthorizeCallback. authn-id - The (authenticated) authentication id. - `java.lang.String` authz-id - The authorization id. - `java.lang.String`
(authorized? this)
Determines whether the authentication id is allowed to act on behalf of the authorization id.
returns: true if authorization is allowed; false otherwise - boolean
Determines whether the authentication id is allowed to act on behalf of the authorization id. returns: true if authorization is allowed; false otherwise - `boolean`
(get-authentication-id this)
Returns the authentication id to check.
returns: The authentication id to check. - java.lang.String
Returns the authentication id to check. returns: The authentication id to check. - `java.lang.String`
(get-authorization-id this)
Returns the authorization id to check.
returns: The authentication id to check. - java.lang.String
Returns the authorization id to check. returns: The authentication id to check. - `java.lang.String`
(get-authorized-id this)
Returns the id of the authorized user.
returns: The id of the authorized user. null means the
authorization failed. - java.lang.String
Returns the id of the authorized user. returns: The id of the authorized user. null means the authorization failed. - `java.lang.String`
(set-authorized this ok)
Sets whether the authorization is allowed.
ok - true if authorization is allowed; false otherwise - boolean
Sets whether the authorization is allowed. ok - true if authorization is allowed; false otherwise - `boolean`
(set-authorized-id this 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.
id - The id of the authorized user. - java.lang.String
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. id - The id of the authorized user. - `java.lang.String`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close