Package es.gob.jmulticard.callback
Class CustomAuthorizeCallback
- java.lang.Object
-
- es.gob.jmulticard.callback.CustomAuthorizeCallback
-
- All Implemented Interfaces:
javax.security.auth.callback.Callback
public final class CustomAuthorizeCallback extends java.lang.Object implements javax.security.auth.callback.Callback
This callback is used bySaslServer
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 Modifier and Type Field Description private boolean
authorized
-
Constructor Summary
Constructors Constructor Description CustomAuthorizeCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAuthorized()
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.
-
-
-
Method Detail
-
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(boolean)
-
setAuthorized
public void setAuthorized(boolean auth)
Sets if authorization is allowed or not.- Parameters:
auth
-true
if authorization is allowed;false
otherwise.- See Also:
isAuthorized()
-
-