All Downloads are FREE. Search and download functionalities are using the official Maven repository.

runtime.csharp.IRT.Transport.Authorization.AuthBasic.cs Maven / Gradle / Ivy


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;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy