APISecurityScheme class Null safety
Defines a security scheme that can be used by the operations.
Supported schemes are HTTP authentication, an API key (either as a header or as a query parameter), OAuth2's common flows (implicit, password, application and access code) as defined in RFC6749, and OpenID Connect Discovery.
Constructors
- APISecurityScheme()
- APISecurityScheme.apiKey(String? name, APIParameterLocation? location)
- APISecurityScheme.empty()
- APISecurityScheme.http(String? scheme)
-
APISecurityScheme.oauth2(Map<
String, APISecuritySchemeOAuth2Flow?> ? flows) - APISecurityScheme.openID(Uri? connectURL)
Properties
-
castMap
→ Map<
String, Cast> ? -
read-onlyinherited
- connectURL ↔ Uri?
-
OpenId Connect URL to discover OAuth2 configuration values.
read / write
- description ↔ String?
-
A short description for security scheme.
CommonMark syntax MAY be used for rich text representation.
read / write
-
extensions
↔ Map<
String, dynamic> -
read / writeinherited
-
flows
↔ Map<
String, APISecuritySchemeOAuth2Flow?> ? -
An object containing configuration information for the flow types supported.
read / write
- format ↔ String?
-
A hint to the client to identify how the bearer token is formatted.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- location ↔ APIParameterLocation?
-
The location of the API key.
read / write
- name ↔ String?
-
The name of the header, query or cookie parameter to be used.
read / write
- referenceURI ↔ Uri?
-
read / writeinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- scheme ↔ String?
-
The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235.
read / write
- type ↔ APISecuritySchemeType?
-
The type of the security scheme.
read / write
Methods
-
decode(
KeyedArchive object) → void -
override
-
encode(
KeyedArchive object) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited