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

templates.java-micronaut.client.auth.Authorization.mustache Maven / Gradle / Ivy

{{>common/licenseInfo}}
package {{invokerPackage}}.auth;

import io.micronaut.context.annotation.AliasFor;
import io.micronaut.core.bind.annotation.Bindable;

import java.lang.annotation.Documented;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
{{#generatedAnnotation}}
import {{javaxPackage}}.annotation.Generated;
{{/generatedAnnotation}}

{{#generatedAnnotation}}
{{>common/generatedAnnotation}}
{{/generatedAnnotation}}
@Documented
@Retention(RUNTIME)
@Target(METHOD)
@Bindable
@Repeatable(Authorizations.class)
public @interface Authorization {

    /**
     * The name of the authorization.
     */
    @AliasFor(annotation = Bindable.class, member = "value")
    String value() default "";

    /**
     * The name of the authorization.
     */
    @AliasFor(annotation = Bindable.class, member = "value")
    String name() default "";

    /**
     * The scopes for the oauth authorization.
     */
    String[] scopes() default {};
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy