be.looorent.micronaut.security.SecurityException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of keycloak-micronaut-adapter Show documentation
Show all versions of keycloak-micronaut-adapter Show documentation
Create API middleware to check Authorization headers against Keycloak
package be.looorent.micronaut.security;
/**
* An a Security error occurs.
* @author Lorent Lempereur - [email protected]
*/
public class SecurityException extends RuntimeException {
private final SecurityErrorType type;
public SecurityException(SecurityErrorType type) {
super(type.getReason());
this.type = type;
}
public SecurityException(SecurityErrorType type, String message) {
super(message);
this.type = type;
}
public SecurityErrorType getType() {
return type;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy