Package es.gob.jmulticard.callback
Class CustomAuthorizeCallback
java.lang.Object
es.gob.jmulticard.callback.CustomAuthorizeCallback
- All Implemented Interfaces:
Callback
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).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if the identity represented by authentication ID is allowed to act on behalf of the authorization ID.void
setAuthorized
(boolean auth) Sets if authorization is allowed or not.
-
Field Details
-
authorized
private boolean authorized
-
-
Constructor Details
-
CustomAuthorizeCallback
public CustomAuthorizeCallback()
-
-
Method Details
-
isAuthorized
public boolean isAuthorized()Determines if the identity represented by authentication ID is allowed to act on behalf of the authorization ID. *- Returns:
true
if authorization is allowed;false
otherwise.- See Also:
-
setAuthorized
public void setAuthorized(boolean auth) Sets if authorization is allowed or not.- Parameters:
auth
-true
if authorization is allowed;false
otherwise.- See Also:
-