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.



APISecurityScheme.apiKey(String? name, APIParameterLocation? location)
APISecurityScheme.http(String? scheme)
APISecurityScheme.oauth2(Map<String, APISecuritySchemeOAuth2Flow>? flows)
APISecurityScheme.openID(Uri? connectURL)


castMap Map<String, Cast>
read-only, inherited
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 / write, inherited
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-only, inherited
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 / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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


decode(KeyedArchive object) → void
encode(KeyedArchive object) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]