public interface SecurityScheme extends Constructible, Extensible<SecurityScheme>, Reference<SecurityScheme>
Modifier and Type | Interface and Description |
---|---|
static class |
SecurityScheme.In
In is a REQUIRED property that specifies the location of the API key.
|
static class |
SecurityScheme.Type
Type is a REQUIRED property that specifies the type of SecurityScheme instance.
|
Modifier and Type | Method and Description |
---|---|
default SecurityScheme |
bearerFormat(java.lang.String bearerFormat)
bearerFormat is intended as a hint to the client to identify how the bearer token is formatted.
|
default SecurityScheme |
description(java.lang.String description)
A short description for security schema.
|
default SecurityScheme |
flows(OAuthFlows flows)
Flows is a REQUIRED property.
|
java.lang.String |
getBearerFormat()
bearerFormat is intended as a hint to the client to identify how the bearer token is formatted.
|
java.lang.String |
getDescription()
A short description for security schema.
|
OAuthFlows |
getFlows()
Flows is a REQUIRED property.
|
SecurityScheme.In |
getIn()
In is a REQUIRED property that indicates the location of the API key.
|
java.lang.String |
getName()
Name is a REQUIRED property - this is the name of the header, query or cookie parameter to be used.
|
java.lang.String |
getOpenIdConnectUrl()
openIdConnectUrl is a REQUIRED property.
|
java.lang.String |
getScheme()
Schema is a REQUIRED property that is the name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235.
|
SecurityScheme.Type |
getType()
Type is a REQUIRED property that specifies the type of SecurityScheme instance.
|
default SecurityScheme |
in(SecurityScheme.In in)
In is a REQUIRED property that indicates the location of the API key.
|
default SecurityScheme |
name(java.lang.String name)
Name is a REQUIRED property - this is the name of the header, query or cookie parameter to be used.
|
default SecurityScheme |
openIdConnectUrl(java.lang.String openIdConnectUrl)
penIdConnectUrl is a REQUIRED property.
|
default SecurityScheme |
scheme(java.lang.String scheme)
Schema is a REQUIRED property that is the name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235.
|
void |
setBearerFormat(java.lang.String bearerFormat)
bearerFormat is intended as a hint to the client to identify how the bearer token is formatted.
|
void |
setDescription(java.lang.String description)
A short description for security schema.
|
void |
setFlows(OAuthFlows flows)
Flows is a REQUIRED property.
|
void |
setIn(SecurityScheme.In in)
In is a REQUIRED property that indicates the location of the API key.
|
void |
setName(java.lang.String name)
Name is a REQUIRED property - this is the name of the header, query or cookie parameter to be used.
|
void |
setOpenIdConnectUrl(java.lang.String openIdConnectUrl)
openIdConnectUrl is a REQUIRED property.
|
void |
setScheme(java.lang.String scheme)
Schema is a REQUIRED property that is the name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235.
|
void |
setType(SecurityScheme.Type type)
Type is a REQUIRED property that specifies the type of SecurityScheme instance.
|
default SecurityScheme |
type(SecurityScheme.Type type)
Type is a REQUIRED property that specifies the type of SecurityScheme instance.
|
addExtension, extensions, getExtensions, removeExtension, setExtensions
SecurityScheme.Type getType()
This method returns the type property from SecurityScheme instance.
void setType(SecurityScheme.Type type)
This method sets the type property of SecurityScheme instance to the given Type argument.
type
- the type of SecurityScheme instancedefault SecurityScheme type(SecurityScheme.Type type)
This method sets the type property of SecurityScheme instance to the given Type argument and returns the modified instance.
type
- the type of SecurityScheme instancejava.lang.String getDescription()
This method returns the description property from SecurityScheme instance.
void setDescription(java.lang.String description)
This method sets the description property of SecurityScheme instance.
description
- short description of the SecuirtyScheme instancedefault SecurityScheme description(java.lang.String description)
This method sets the description property of SecurityScheme instance and returns the modified instance.
description
- short description of the SecuirtyScheme instancejava.lang.String getName()
This method returns the name property from SecurityScheme instance.
void setName(java.lang.String name)
This method sets the name property of SecurityScheme instance to the parameter.
name
- the name of the header, query or cookie parameter to be useddefault SecurityScheme name(java.lang.String name)
This method sets the name property of SecurityScheme instance to the given String argument and returns the modified instance.
name
- the name of the header, query or cookie parameter to be usedSecurityScheme.In getIn()
This method returns the in property from SecurityScheme instance.
void setIn(SecurityScheme.In in)
The method sets the in property of SecurityScheme instance to the given In argument.
in
- the location of the API keydefault SecurityScheme in(SecurityScheme.In in)
This method sets the in property of SecurityScheme instance to the given In argument and returns the modified instance.
in
- the location of the API keyjava.lang.String getScheme()
This method returns the scheme property from SecurityScheme instance.
void setScheme(java.lang.String scheme)
This method sets the scheme property of SecurityScheme instance to the given String argument.
scheme
- the name of the HTTP Authorization scheme to be used in the Authorization headerdefault SecurityScheme scheme(java.lang.String scheme)
This method sets the scheme property of SecurityScheme instance to the given String argument and returns the modified instance.
scheme
- the name of the HTTP Authorization scheme to be used in the Authorization headerjava.lang.String getBearerFormat()
This method returns the bearerFormat property from SecurityScheme instance.
void setBearerFormat(java.lang.String bearerFormat)
This method sets the bearerFormat property of SecurityScheme instance to the given String argument.
bearerFormat
- a hint to the client to identify how the bearer token is formatteddefault SecurityScheme bearerFormat(java.lang.String bearerFormat)
This method sets the bearerFormat property of SecurityScheme instance to the given String argument and returns the modified instance.
bearerFormat
- a hint to the client to identify how the bearer token is formattedOAuthFlows getFlows()
Flows is an object containing configuration information for the flow types supported.
This method returns the flows property from SecurityScheme instance.
void setFlows(OAuthFlows flows)
Flows is an object containing configuration information for the flow types supported.
This method sets the flows property of SecurityScheme instance to the given OAuthFlows argument.
flows
- an object containing configuration information for the flow types supporteddefault SecurityScheme flows(OAuthFlows flows)
Flows is an object containing configuration information for the flow types supported.
This method sets the flows property of SecurityScheme instance to the given OAuthFlows argument and returns the modified instance.
flows
- an object containing configuration information for the flow types supportedjava.lang.String getOpenIdConnectUrl()
This property allows to discover OAuth2 configuration values. openIdConnectUrl MUST be in a form of a URL.
This method returns the openIdConnectUrl property from SecurityScheme instance.
void setOpenIdConnectUrl(java.lang.String openIdConnectUrl)
This property allows to discover OAuth2 configuration values. openIdConnectUrl MUST be in a form of a URL.
This method sets the openIdConnectUrl property of a SecurityScheme instance to the given String argument.
openIdConnectUrl
- a URL where OAuth2 configuration values are storeddefault SecurityScheme openIdConnectUrl(java.lang.String openIdConnectUrl)
This property allows to discover OAuth2 configuration values. openIdConnectUrl MUST be in a form of a URL.
This method sets the openIdConnectUrl property of SecurityScheme instance to the given String argument and returns the modified instance.
openIdConnectUrl
- a URL where OAuth2 configuration values are stored