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

com.artipie.http.auth.BasicAuthzSlice Maven / Gradle / Ivy

There is a newer version: v1.17.16
Show newest version
/*
 * The MIT License (MIT) Copyright (c) 2020-2023 artipie.com
 * https://github.com/artipie/artipie/blob/master/LICENSE.txt
 */
package com.artipie.http.auth;

import com.artipie.http.Slice;

/**
 * Slice with basic authentication.
 * @since 0.17
 */
public final class BasicAuthzSlice extends Slice.Wrap {

    /**
     * Ctor.
     * @param origin Origin slice
     * @param auth Authorization
     * @param control Access control
     */
    public BasicAuthzSlice(
        final Slice origin, final Authentication auth, final OperationControl control
    ) {
        super(new AuthzSlice(origin, new BasicAuthScheme(auth), control));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy