public IAuthenticationResult CheckAccess(string clientKey, string clientHost) { IAccessKey key = keys.SingleOrDefault(_ => _.CheckAccess(clientKey, clientHost)); if (key != null) { return(new AuthenticationOK(key.AsString())); } else { return(new AuthenticationFailed()); } }
private IAccessKey GetKeyForDiscountSector(IAccessKey key) { return(key); //AccessKey k = new AccessKey(); //k.Type = key.Type; //short parkingID = Settings.Default.ParkingID; //byte[] ba = key.Value; //for (int i = 0; i < AccessKey.KeySize; i += 2) //{ // short z = ba[i]; // z += (short)(ba[i + 1] << 8); // z ^= parkingID; // ba[i] = (byte)(z & 0xFF); // ba[i + 1] = (byte)((z >> 8) & 0xFF); //} //return k; }
/// <summary>Creates a new instance of <see cref="AmazonS3Client" /></summary> /// <param name="credentials">The credentials to use</param> /// <param name="region">The region you wish to use</param> /// <param name="proxy">A web proxy (optional)</param> public AmazonS3Client(IAccessKey credentials, AmazonS3Region region, IWebProxy?proxy = null) : this(new AmazonS3Config(credentials, region), proxy) { }
public S3Config(IAccessKey credentials, AwsRegion region) { Credentials = credentials; Region = region; }
/// <summary>Creates a new instance of <see cref="GoogleCloudStorageClient" /></summary> /// <param name="credentials">The credentials to use</param> /// <param name="region">The region you wish to use</param> /// <param name="proxy">A web proxy (optional)</param> public GoogleCloudStorageClient(IAccessKey credentials, GoogleCloudStorageRegion region, IWebProxy? proxy = null) : this(new GoogleCloudStorageConfig(credentials, region), proxy) { }
/// <summary>Creates a new instance of <see cref="WasabiClient" /></summary> /// <param name="credentials">The credentials to use</param> /// <param name="region">The region you wish to use</param> /// <param name="proxy">A web proxy (optional)</param> public WasabiClient(IAccessKey credentials, WasabiRegion region, IWebProxy?proxy = null) : this(new WasabiConfig(credentials, region), proxy) { }
public BackBlazeB2Config(IAccessKey credentials, BackBlazeB2Region region) : this() { Credentials = credentials; Region = region; }
public SimpleS3Config(IAccessKey credentials, string region) { Credentials = credentials; RegionCode = region; }
public GoogleCloudStorageConfig(IAccessKey credentials, GoogleCloudStorageRegion region) : this() { Credentials = credentials; Region = region; }
/// <summary>Creates a new instance of <see cref="BackBlazeB2Client" /></summary> /// <param name="credentials">The credentials to use</param> /// <param name="region">The region you wish to use</param> /// <param name="proxy">A web proxy (optional)</param> public BackBlazeB2Client(IAccessKey credentials, BackBlazeB2Region region, IWebProxy?proxy = null) : this(new BackBlazeB2Config(credentials, region), proxy) { }
public AmazonS3Config(IAccessKey credentials, AmazonS3Region region) : this() { Credentials = credentials; Region = region; }
/// <summary> /// Creates a new instance of <see cref="S3Client" /> /// </summary> /// <param name="credentials">The credentials to use</param> /// <param name="region">The region you wish to use</param> /// <param name="proxy">A web proxy (optional)</param> public S3Client(IAccessKey credentials, AwsRegion region, IWebProxy proxy = null) : this(new S3Config(credentials, region), proxy) { }
public WasabiConfig(IAccessKey credentials, WasabiRegion region) : this() { Credentials = credentials; Region = region; }