runtime.csharp.IRT.Transport.Authorization.AuthBasic.cs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of idealingua-v1-runtime-rpc-c-sharp_2.13 Show documentation
Show all versions of idealingua-v1-runtime-rpc-c-sharp_2.13 Show documentation
idealingua-v1-runtime-rpc-c-sharp
The newest version!
namespace IRT.Transport.Authorization {
class AuthBasic: AuthMethod {
public string User;
public string Pass;
public AuthBasic(string user = null, string pass = null) {
User = user;
Pass = pass;
}
public override bool FromValue(string value) {
return false;
}
public override string ToValue() {
return "Basic " + User + ":" + Pass;
}
}
}