001/*
002 * Copyright 2012-2018 the original author or authors.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *      http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.springframework.boot.autoconfigure.security.oauth2.resource;
017
018import org.springframework.boot.context.properties.ConfigurationProperties;
019
020/**
021 * OAuth 2.0 resource server properties.
022 *
023 * @author Madhura Bhave
024 * @author Artsiom Yudovin
025 * @since 2.1.0
026 */
027@ConfigurationProperties(prefix = "spring.security.oauth2.resourceserver")
028public class OAuth2ResourceServerProperties {
029
030        private final Jwt jwt = new Jwt();
031
032        public Jwt getJwt() {
033                return this.jwt;
034        }
035
036        public static class Jwt {
037
038                /**
039                 * JSON Web Key URI to use to verify the JWT token.
040                 */
041                private String jwkSetUri;
042
043                /**
044                 * URI that an OpenID Connect Provider asserts as its Issuer Identifier.
045                 */
046                private String issuerUri;
047
048                public String getJwkSetUri() {
049                        return this.jwkSetUri;
050                }
051
052                public void setJwkSetUri(String jwkSetUri) {
053                        this.jwkSetUri = jwkSetUri;
054                }
055
056                public String getIssuerUri() {
057                        return this.issuerUri;
058                }
059
060                public void setIssuerUri(String issuerUri) {
061                        this.issuerUri = issuerUri;
062                }
063
064        }
065
066}