package org.apereo.cas.adaptors.yubikey;
/**
* General contract that allows one to determine whether
* a particular YubiKey account
* is allowed to participate in the authentication.
* Accounts are noted by the username
* and the public id of the YubiKey device.
*
* @author Misagh Moayyed
* @since 4.1
*/
public interface YubiKeyAccountRegistry {
/**
* Determines whether the registered
* YubiKey public id is allowed for the {@code uid} received.
* @param uid user id
* @param yubikeyPublicId public id of the yubi id
* @return true if the public id is allowed and registered for the uid.
*/
boolean isYubiKeyRegisteredFor(String uid, String yubikeyPublicId);
}