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 * Matches any browser.
021 */
022public final class AnyBrowserMatcher implements BrowserMatcher {
023
024    /**
025     * The singleton instance.
026     */
027    public static final AnyBrowserMatcher INSTANCE = new AnyBrowserMatcher();
028
029    private AnyBrowserMatcher() {
030        // no need to construct separate instances
031    }
032
033    @Override
034    public boolean matches(@NonNull BrowserDescriptor descriptor) {
035        return true;
036    }
037}