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

io.quarkus.security.identity.SecurityIdentityAugmentor Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package io.quarkus.security.identity;

import io.smallrye.mutiny.Uni;

/**
 * An interface that allows for a {@link SecurityIdentity} to be modified after creation.
 * 

* Implementations of this interface should be CDI beans. At run time all CDI beans that implement this interface * will be used to augment the {@link SecurityIdentity}, with the order determined via the {@link #priority()} field. *

* Implementations are run from highest to lowest priority. */ public interface SecurityIdentityAugmentor { /** * @return The priority */ default int priority() { return 0; } /** * Augments a security identity to allow for modification of the underlying identity. * * @param identity The identity * @return A completion stage that will resolve to the modified identity */ Uni augment(SecurityIdentity identity, AuthenticationRequestContext context); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy