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.CallbackThis callback is used bySaslServerto 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 booleanauthorized
-
Constructor Summary
Constructors Constructor Description CustomAuthorizeCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAuthorized()Determines if the identity represented by authentication ID is allowed to act on behalf of the authorization ID.voidsetAuthorized(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:
trueif authorization is allowed;falseotherwise.- See Also:
setAuthorized(boolean)
-
setAuthorized
public void setAuthorized(boolean auth)
Sets if authorization is allowed or not.- Parameters:
auth-trueif authorization is allowed;falseotherwise.- See Also:
isAuthorized()
-
-