Ejemplo n.º 1
0
        private TlsPinningConfig GetIncorrectTlsPinningConfig(bool enforce)
        {
            var builder = new PinConfigBuilder(enforce);

            builder.AddDomain(_apiHost, enforce, new List <string>
            {
                "wrong pin",
                "another wrong pin"
            });

            return(builder.Config());
        }
Ejemplo n.º 2
0
        private TlsPinningConfig GetAlternativeApiTlsPinningConfig(bool enforce)
        {
            var builder = new PinConfigBuilder(enforce);

            builder.AddDomain(_alternativeHost, enforce, new List <string>
            {
                "EU6TS9MO0L/GsDHvVc9D5fChYLNy5JdGYpJw0ccgetM=",
                "iKPIHPnDNqdkvOnTClQ8zQAIKG0XavaPkcEo0LBAABA=",
                "MSlVrBCdL0hKyczvgYVSRNm88RicyY04Q2y5qrBt0xA=",
                "C2UxW0T1Ckl9s+8cXfjXxlEqwAfPM4HiW2y3UdtBeCw=",
            });

            return(builder.Config());
        }
Ejemplo n.º 3
0
        private TlsPinningConfig GetApiTlsPinningConfig(bool enforce)
        {
            var builder = new PinConfigBuilder(enforce);

            builder.AddDomain(_apiHost, enforce, new List <string>
            {
                "IEwk65VSaxv3s1/88vF/rM8PauJoIun3rzVCX5mLS3M=",
                "drtmcR2kFkM8qJClsuWgUzxgBkePfRCkRpqUesyDmeE=",
                "YRGlaY0jyJ4Jw2/4M8FIftwbDIQfh8Sdro96CeEel54=",
                "AfMENBVvOS8MnISprtvyPsjKlPooqh8nMB/pvCrpJpw=",
            });

            return(builder.Config());
        }