Class ApiAuthSlice

  • All Implemented Interfaces:
    com.artipie.http.Slice

    public final class ApiAuthSlice
    extends Object
    implements com.artipie.http.Slice
    API authentication slice.
    Since:
    0.1
    • Constructor Detail

      • ApiAuthSlice

        public ApiAuthSlice​(com.artipie.http.auth.Authentication auth,
                            com.artipie.http.auth.Permissions perms,
                            com.artipie.http.Slice origin,
                            com.artipie.http.auth.AuthScheme scheme)
        Ctor.
        Parameters:
        auth - Authentication
        perms - Permissions
        origin - Origin slice
        scheme - Authentication scheme
    • Method Detail

      • response

        public com.artipie.http.Response response​(String line,
                                                  Iterable<Map.Entry<String,​String>> headers,
                                                  org.reactivestreams.Publisher<ByteBuffer> body)
        Specified by:
        response in interface com.artipie.http.Slice