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
-
IMessage<SourceCredential>IDeepCloneable<SourceCredential>IBufferMessageIMessage
- Inherited Members
Constructors
SourceCredential()
public SourceCredential()
SourceCredential(SourceCredential)
public SourceCredential(SourceCredential other)
Parameters
otherSourceCredential
Fields
BasicFieldNumber
Field number for the "basic" field.
public const int BasicFieldNumber = 1
Field Value
BearerFieldNumber
Field number for the "bearer" field.
public const int BearerFieldNumber = 2
Field Value
NamedFieldNumber
Field number for the "named" field.
public const int NamedFieldNumber = 3
Field Value
Properties
Basic
public BasicAuthCredential Basic { get; set; }
Property Value
Bearer
public BearerTokenCredential Bearer { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasNamed
Gets whether the "named" field is set
public bool HasNamed { get; }
Property Value
Named
public string Named { get; set; }
Property Value
Parser
public static MessageParser<SourceCredential> Parser { get; }
Property Value
- MessageParser<SourceCredential>
SchemeCase
public SourceCredential.SchemeOneofCase SchemeCase { get; }
Property Value
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
otherobject
Returns
Equals(SourceCredential)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(SourceCredential other)
Parameters
otherSourceCredentialAn object to compare with this object.
Returns
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
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(SourceCredential)
Merges the given message into this one.
public void MergeFrom(SourceCredential other)
Parameters
otherSourceCredential
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
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.