Table of Contents

Class SourceCredential

Namespace
Virtufin.WorkManager.Protos
Assembly
Virtufin.WorkManager.Protos.dll

Per-request authorization for a CodeSource URL fetch. Never persisted beyond the fetch it authorizes (see RegistryAuthHandler's removal -- this replaces its unconditional shared-bot-by-host model). basic/ bearer carry the secret directly; named is a server-resolved reference (e.g. "virtufin" for the org's own shared registry credential) so that secret never has to be distributed to callers.

public sealed class SourceCredential : IMessage<SourceCredential>, IEquatable<SourceCredential>, IDeepCloneable<SourceCredential>, IBufferMessage, IMessage
Inheritance
SourceCredential
Implements
IDeepCloneable<SourceCredential>
IBufferMessage
IMessage
Inherited Members

Constructors

SourceCredential()

public SourceCredential()

SourceCredential(SourceCredential)

public SourceCredential(SourceCredential other)

Parameters

other SourceCredential

Fields

BasicFieldNumber

Field number for the "basic" field.

public const int BasicFieldNumber = 1

Field Value

int

BearerFieldNumber

Field number for the "bearer" field.

public const int BearerFieldNumber = 2

Field Value

int

NamedFieldNumber

Field number for the "named" field.

public const int NamedFieldNumber = 3

Field Value

int

Properties

Basic

public BasicAuthCredential Basic { get; set; }

Property Value

BasicAuthCredential

Bearer

public BearerTokenCredential Bearer { get; set; }

Property Value

BearerTokenCredential

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

HasNamed

Gets whether the "named" field is set

public bool HasNamed { get; }

Property Value

bool

Named

public string Named { get; set; }

Property Value

string

Parser

public static MessageParser<SourceCredential> Parser { get; }

Property Value

MessageParser<SourceCredential>

SchemeCase

public SourceCredential.SchemeOneofCase SchemeCase { get; }

Property Value

SourceCredential.SchemeOneofCase

Methods

CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

public int CalculateSize()

Returns

int

The number of bytes required to write this message to a coded output stream.

ClearNamed()

Clears the value of the oneof if it's currently set to "named"

public void ClearNamed()

ClearScheme()

public void ClearScheme()

Clone()

Creates a deep clone of this object.

public SourceCredential Clone()

Returns

SourceCredential

A deep clone of this object.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(SourceCredential)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(SourceCredential other)

Parameters

other SourceCredential

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

public void MergeFrom(CodedInputStream input)

Parameters

input CodedInputStream

Remarks

See the user guide for precise merge semantics.

MergeFrom(SourceCredential)

Merges the given message into this one.

public void MergeFrom(SourceCredential other)

Parameters

other SourceCredential

Remarks

See the user guide for precise merge semantics.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream

Coded output stream to write the data to. Must not be null.