Class 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 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 
      Modifier and Type Field Description
      private boolean authorized  
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • authorized

        private boolean authorized
    • Constructor Detail

      • CustomAuthorizeCallback

        public CustomAuthorizeCallback()
    • 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()