001/*
002 * Copyright 2016 The AppAuth for Android Authors. All Rights Reserved.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
005 * in compliance with the License. You may obtain a copy of the License at
006 *
007 * http://www.apache.org/licenses/LICENSE-2.0
008 *
009 * Unless required by applicable law or agreed to in writing, software distributed under the
010 * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
011 * express or implied. See the License for the specific language governing permissions and
012 * limitations under the License.
013 */
014
015package net.openid.appauth.browser;
016
017import androidx.annotation.NonNull;
018
019/**
020 * Determines whether a {@link BrowserDescriptor} matches some set of criteria.
021 * Implementations of this type can be used to control the set of browsers used by AppAuth
022 * for authorization.
023 */
024public interface BrowserMatcher {
025
026    /**
027     * @return true if the browser matches some set of criteria.
028     */
029    boolean matches(@NonNull BrowserDescriptor descriptor);
030
031}