All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tbk.spring.lnurl.security.LnurlAuthenticationException Maven / Gradle / Ivy

There is a newer version: 0.14.0
Show newest version
package org.tbk.spring.lnurl.security;

import org.springframework.context.ApplicationEventPublisher;
import org.springframework.security.authentication.DefaultAuthenticationEventPublisher;
import org.springframework.security.authentication.event.AbstractAuthenticationFailureEvent;
import org.springframework.security.core.AuthenticationException;

/**
 * Thrown if an authentication request is rejected because the parameters are invalid.
 * 

* Throwing this exception will not emit {@link AbstractAuthenticationFailureEvent} * via {@link DefaultAuthenticationEventPublisher} per default! *

* If you want failure events to be emitted, use an {@link AuthenticationException} class that is mapped in * {@link DefaultAuthenticationEventPublisher#DefaultAuthenticationEventPublisher(ApplicationEventPublisher)} */ public class LnurlAuthenticationException extends AuthenticationException { /** * Constructs a LnurlAuthenticationException with the specified message. * * @param msg the detail message */ public LnurlAuthenticationException(String msg) { super(msg); } /** * Constructs a LnurlAuthenticationException with the specified message and * root cause. * * @param msg the detail message * @param cause root cause */ public LnurlAuthenticationException(String msg, Throwable cause) { super(msg, cause); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy