Class AuthorizationException

    • Constructor Detail

      • AuthorizationException

        protected AuthorizationException​(String msg,
                                         Principal authorizationPrincipal)
        Constructs a new AuthorizationException instance with an initial message. No cause is specified.
        Parameters:
        msg - the message
        authorizationPrincipal - the principal being authorized
      • AuthorizationException

        protected AuthorizationException​(String msg,
                                         Throwable cause,
                                         Principal authorizationPrincipal)
        Constructs a new AuthorizationException instance with an initial message and cause.
        Parameters:
        msg - the message
        cause - the cause
        authorizationPrincipal - the principal being authorized
    • Method Detail

      • getAuthorizationPrincipal

        public Principal getAuthorizationPrincipal()
        Get the principal being authorized.
        Returns:
        the principal being authorized