Class CustomAuthorizeCallback

java.lang.Object
es.gob.jmulticard.callback.CustomAuthorizeCallback
All Implemented Interfaces:
Callback

public final class CustomAuthorizeCallback extends Object implements 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 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: