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

io.swagger.annotations.SecurityDefinition Maven / Gradle / Ivy

There is a newer version: 4.0.0-preview.1
Show newest version
package io.swagger.annotations;

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

/**
 * An aggregation of all security definitions.
 */
@Target (ElementType.ANNOTATION_TYPE)
@Retention (RetentionPolicy.RUNTIME)
public @interface SecurityDefinition {

    /**
     * OAuth security definition objects
     *
     * @return OAuth security definition objects
     */
    OAuth2Definition[] oAuth2Definitions() default {};

    /**
     * @deprecated Use {@link #apiKeyAuthDefinitions()} instead
     */
    @Deprecated
    ApiKeyAuthDefinition[] apiKeyAuthDefintions() default {};

    /**
     * API Key security definition objects
     *
     * @return API Key security definition objects
     */
    ApiKeyAuthDefinition[] apiKeyAuthDefinitions() default {};

    /**
     * @deprecated Use {@link #basicAuthDefinitions()} instead
     */
    @Deprecated
    BasicAuthDefinition[] basicAuthDefinions() default {};

    /**
     * Basic auth security definition objects
     *
     * @return basic auth security definition objects
     */
    BasicAuthDefinition[] basicAuthDefinitions() default {};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy