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

io.quarkus.security.IdentityAttribute Maven / Gradle / Ivy

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

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import javax.inject.Qualifier;

import io.quarkus.security.identity.IdentityProvider;

/**
 * A qualifier than can be used to inject attributes from the current identity.
 *
 * The only standard attribute that should be provided wherever applicable is the 'quarkus.user'
 * attribute, which represents the underlying user representation. This representation will
 * depend on the underlying {@link IdentityProvider} that is in use, e.g. for a JPA based one
 * this will likely be a JPA entity representing the current user.
 */
@Qualifier
@Retention(RetentionPolicy.RUNTIME)
public @interface IdentityAttribute {

    /**
     *
     * @return The attribute name
     */
    String value();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy