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

com.yubico.u2f.exceptions.NoEligableDevicesException Maven / Gradle / Ivy

There is a newer version: 0.19.12
Show newest version
package com.yubico.u2f.exceptions;

import com.google.common.collect.ImmutableList;
import com.yubico.u2f.data.DeviceRegistration;

import java.util.List;

/**
 * @deprecated use {@link NoEligibleDevicesException}
 */
@Deprecated
public class NoEligableDevicesException extends Exception {
    private final List devices;

    public NoEligableDevicesException(Iterable devices, String message, Throwable cause) {
        super(message, cause);
        this.devices = ImmutableList.copyOf(devices);
    }

    public NoEligableDevicesException(Iterable devices, String message) {
        super(message);
        this.devices = ImmutableList.copyOf(devices);
    }

    public Iterable getDeviceRegistrations() {
        return devices;
    }

    public boolean hasDevices() {
        return !devices.isEmpty();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy