@Retention(value=RUNTIME) public @interface RamlSecurityScheme
Used to describe a security scheme.
Works in conjunction with the @RamlApp annotation.
Types must adhere to the allowed security schemes defined by the RAML 1.0 specification.
RamlApp,
RamlSecuredBy| Modifier and Type | Required Element and Description |
|---|---|
RamlDescribedBy |
describedBy
The overall descriptor of the security scheme, covering required headers, query parameters and associated responses.
|
String |
key
The security scheme key.
|
String |
type
The type of security scheme.
|
| Modifier and Type | Optional Element and Description |
|---|---|
String |
description
The description of the security scheme.
|
RamlOAuth1Settings |
oauth1Settings
Define the settings for OAuth 1.0
|
RamlOAuth2Settings |
oauth2Settings
Define the settings for OAuth 2.0
|
public abstract String key
The security scheme key.
This key is use with the @RamlSecuredBy annotation to link resource methods to this security scheme
public abstract String type
The type of security scheme.
Must adhere to the allowed types defined by the RAML specification.
public abstract RamlDescribedBy describedBy
The overall descriptor of the security scheme, covering required headers, query parameters and associated responses.
public abstract String description
The description of the security scheme.
public abstract RamlOAuth1Settings oauth1Settings
Define the settings for OAuth 1.0
public abstract RamlOAuth2Settings oauth2Settings
Define the settings for OAuth 2.0
Copyright © 2019. All rights reserved.