GitCredential enum

Supported credential types.

This represents the various types of authentication methods supported by the library.

Inheritance
Available extensions

Values

userPassPlainText → const GitCredential

A vanilla user/password request.

const GitCredential(1)
sshKey → const GitCredential

An SSH key-based authentication request.

const GitCredential(2)
sshCustom → const GitCredential

An SSH key-based authentication request, with a custom signature.

const GitCredential(4)
defaultAuth → const GitCredential

An NTLM/Negotiate-based authentication request.

const GitCredential(8)
sshInteractive → const GitCredential

An SSH interactive authentication request.

const GitCredential(16)
username → const GitCredential

Username-only authentication request.

Used as a pre-authentication step if the underlying transport (eg. SSH, with no username in its URL) does not know which username to use.

const GitCredential(32)
sshMemory → const GitCredential

An SSH key-based authentication request.

Allows credentials to be read from memory instead of files. Note that because of differences in crypto backend support, it might not be functional.

const GitCredential(64)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromFlag(int value) Set<GitCredential>
fromValue(int value) GitCredential

Constants

values → const List<GitCredential>
A constant List of the values in this enum, in order of their declaration.