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

io.quarkus.vertx.http.runtime.security.FormAuthenticationEvent Maven / Gradle / Ivy

The newest version!
package io.quarkus.vertx.http.runtime.security;

import java.util.Map;

import io.quarkus.security.identity.SecurityIdentity;
import io.quarkus.security.spi.runtime.AbstractSecurityEvent;

public final class FormAuthenticationEvent extends AbstractSecurityEvent {

    public static final String FORM_CONTEXT = "io.quarkus.vertx.http.runtime.security.FormAuthenticationEvent#CONTEXT";

    public enum FormEventType {
        /**
         * Event fired when a user was successfully authenticated with a call to the Form mechanism POST location.
         */
        FORM_LOGIN
    }

    private FormAuthenticationEvent(SecurityIdentity securityIdentity, Map eventProperties) {
        super(securityIdentity, eventProperties);
    }

    static FormAuthenticationEvent createLoginEvent(SecurityIdentity identity) {
        return new FormAuthenticationEvent(identity, Map.of(FORM_CONTEXT, FormEventType.FORM_LOGIN.toString()));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy