Pkce class

A class that facilitates verification of challenges for Proof Key for Code Exchange.

Constructors

Pkce(String codeChallengeMethod, String? codeChallenge)
Pkce.fromJson(Map data, {String? state, Uri? uri})
Attempts to parse a codeChallenge and codeChallengeMethod from a Map.
factory

Properties

codeChallenge String?
The proof key that is used to secure public clients.
final
codeChallengeMethod String
A String defining how to handle the codeChallenge.
final
hashCode int
The hash code for this object.
no setterinherited
isPlain bool
Returns true if the codeChallengeMethod is plain.
no setter
isS256 bool
Returns true if the codeChallengeMethod is s256.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Creates a JSON-serializable representation of this instance.
toString() String
A string representation of this object.
inherited
validate(String codeVerifier, {String? state, Uri? uri}) → void
Determines if a given codeVerifier is valid.

Operators

operator ==(Object other) bool
The equality operator.
inherited