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;
016
017/**
018 * The response type values defined by the
019 * [OAuth 2.0](https://tools.ietf.org/html/rfc6749) and
020 * [OpenID Connect Core 1.0](http://openid.net/specs/openid-connect-core-1_0.html)
021 * specifications, used in {@link AuthorizationRequest authorization} and
022 * {@link RegistrationRequest dynamic client registration} requests.
023 */
024public final class ResponseTypeValues {
025    /**
026     * For requesting an authorization code.
027     *
028     * @see "The OAuth 2.0 Authorization Framework (RFC 6749), Section 3.1.1
029     * <https://tools.ietf.org/html/rfc6749#section-3.1.1>"
030     */
031    public static final String CODE = "code";
032
033    /**
034     * For requesting an access token via an implicit grant.
035     *
036     * @see "The OAuth 2.0 Authorization Framework (RFC 6749), Section 3.1.1
037     * <https://tools.ietf.org/html/rfc6749#section-3.1.1>"
038     */
039    public static final String TOKEN = "token";
040
041    /**
042     * For requesting an OpenID Conenct ID Token.
043     *
044     * @see "The OAuth 2.0 Authorization Framework (RFC 6749), Section 3.1.1
045     * <https://tools.ietf.org/html/rfc6749#section-3.1.1>"
046     */
047    public static final String ID_TOKEN = "id_token";
048
049    private ResponseTypeValues() {
050        throw new IllegalStateException("This type is not intended to be instantiated");
051    }
052}