at.yawk.dbus.protocol.auth.command.AgreeUnixFd 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 AgreeUnixFd extends Command {
public static final String NAME = "AGREE_UNIX_FD";
public AgreeUnixFd() {
super(AuthDirection.FROM_SERVER, NAME);
}
public static AgreeUnixFd parse(List args) {
if (!args.isEmpty()) { throw new IllegalArgumentException("No arguments expected"); }
return new AgreeUnixFd();
}
}