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

com.tencentcloudapi.apigateway.v20180808.models.OauthConfig Maven / Gradle / Ivy

/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.apigateway.v20180808.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class OauthConfig extends AbstractModel{

    /**
    * 公钥,用于验证用户token。
    */
    @SerializedName("PublicKey")
    @Expose
    private String PublicKey;

    /**
    * token传递位置。
    */
    @SerializedName("TokenLocation")
    @Expose
    private String TokenLocation;

    /**
    * 重定向地址,用于引导用户登录操作。
    */
    @SerializedName("LoginRedirectUrl")
    @Expose
    private String LoginRedirectUrl;

    /**
     * Get 公钥,用于验证用户token。 
     * @return PublicKey 公钥,用于验证用户token。
     */
    public String getPublicKey() {
        return this.PublicKey;
    }

    /**
     * Set 公钥,用于验证用户token。
     * @param PublicKey 公钥,用于验证用户token。
     */
    public void setPublicKey(String PublicKey) {
        this.PublicKey = PublicKey;
    }

    /**
     * Get token传递位置。 
     * @return TokenLocation token传递位置。
     */
    public String getTokenLocation() {
        return this.TokenLocation;
    }

    /**
     * Set token传递位置。
     * @param TokenLocation token传递位置。
     */
    public void setTokenLocation(String TokenLocation) {
        this.TokenLocation = TokenLocation;
    }

    /**
     * Get 重定向地址,用于引导用户登录操作。 
     * @return LoginRedirectUrl 重定向地址,用于引导用户登录操作。
     */
    public String getLoginRedirectUrl() {
        return this.LoginRedirectUrl;
    }

    /**
     * Set 重定向地址,用于引导用户登录操作。
     * @param LoginRedirectUrl 重定向地址,用于引导用户登录操作。
     */
    public void setLoginRedirectUrl(String LoginRedirectUrl) {
        this.LoginRedirectUrl = LoginRedirectUrl;
    }

    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "PublicKey", this.PublicKey);
        this.setParamSimple(map, prefix + "TokenLocation", this.TokenLocation);
        this.setParamSimple(map, prefix + "LoginRedirectUrl", this.LoginRedirectUrl);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy