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

at.yawk.dbus.protocol.auth.command.Rejected Maven / Gradle / Ivy

/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */

package at.yawk.dbus.protocol.auth.command;

import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Value;

/**
 * @author yawkat
 */
@Value
@EqualsAndHashCode(callSuper = true)
public class Rejected extends Command {
    public static final String NAME = "REJECTED";
    private final List mechanisms;

    public Rejected(List mechanisms) {
        super(AuthDirection.FROM_SERVER, NAME, String.join(" ", mechanisms));
        this.mechanisms = mechanisms;
    }

    public static Rejected parse(List args) {
        return new Rejected(args);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy