Skip to content

Commit

Permalink
chore!: use new class keywords for credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed May 13, 2023
1 parent 6df9d87 commit e92aac8
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/src/core/credentials/ace_credentials.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import '../../definitions/security/ace_security_scheme.dart';
import 'credentials.dart';

/// [Credentials] used for the [AceSecurityScheme].
class AceCredentials extends Credentials {
final class AceCredentials extends Credentials {
/// Constructor.
AceCredentials(this.accessToken);

Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/credentials/apikey_credentials.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import '../../definitions/security/apikey_security_scheme.dart';
import 'credentials.dart';

/// [Credentials] used for the [ApiKeySecurityScheme].
class ApiKeyCredentials extends Credentials {
final class ApiKeyCredentials extends Credentials {
/// Constructor.
ApiKeyCredentials(this.apiKey);

Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/credentials/basic_credentials.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import 'credentials.dart';
/// [Credentials] used for the [BasicSecurityScheme].
///
/// Provides an unencrypted [username] and [password] combination.
class BasicCredentials extends Credentials {
final class BasicCredentials extends Credentials {
/// Constructor.
BasicCredentials(this.username, this.password);

Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/credentials/bearer_credentials.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import '../../definitions/security/bearer_security_scheme.dart';
import 'credentials.dart';

/// [Credentials] used for the [BearerSecurityScheme].
class BearerCredentials extends Credentials {
final class BearerCredentials extends Credentials {
/// Constructor.
BearerCredentials(this.token);

Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/credentials/credentials.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// SPDX-License-Identifier: BSD-3-Clause

/// Base class used for defining credentials for Thing Interactions.
abstract class Credentials {}
base class Credentials {}
2 changes: 1 addition & 1 deletion lib/src/core/credentials/digest_credentials.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import '../../definitions/security/digest_security_scheme.dart';
import 'credentials.dart';

/// [Credentials] used for the [DigestSecurityScheme].
class DigestCredentials extends Credentials {
final class DigestCredentials extends Credentials {
/// Constructor.
DigestCredentials(this.username, this.password);

Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/credentials/oauth2_credentials.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import '../../definitions/security/oauth2_security_scheme.dart';
import 'credentials.dart';

/// [Credentials] used for the [OAuth2SecurityScheme].
class OAuth2Credentials extends Credentials {
final class OAuth2Credentials extends Credentials {
/// Constructor.
OAuth2Credentials([this.secret]);

Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/credentials/psk_credentials.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import '../../definitions/security/psk_security_scheme.dart';
import 'credentials.dart';

/// [Credentials] used for the [PskSecurityScheme].
class PskCredentials extends Credentials {
final class PskCredentials extends Credentials {
/// Constructor.
PskCredentials({required this.preSharedKey, required this.identity});

Expand Down

0 comments on commit e92aac8

Please sign in to comment.