001/**
002 * Copyright (c) 2015-2022, Michael Yang 杨福海 (fuhai999@gmail.com).
003 * <p>
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 * <p>
008 * http://www.apache.org/licenses/LICENSE-2.0
009 * <p>
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 io.jboot.support.shiro;
017
018import io.jboot.app.config.annotation.ConfigModel;
019
020@ConfigModel(prefix = "jboot.shiro")
021public class JbootShiroConfig {
022
023    private String loginUrl;
024    private String successUrl;
025    private String unauthorizedUrl;
026    private String ini;                 //Ini文件路径,默认去classPath寻找
027    private String urlMapping = "/*";
028
029    private String invokeListener;
030    private String filter = "io.jboot.support.shiro.JbootShiroFilter";
031
032    public String getLoginUrl() {
033        return loginUrl;
034    }
035
036    public void setLoginUrl(String loginUrl) {
037        this.loginUrl = loginUrl;
038    }
039
040    public String getSuccessUrl() {
041        return successUrl;
042    }
043
044    public void setSuccessUrl(String successUrl) {
045        this.successUrl = successUrl;
046    }
047
048    public String getUnauthorizedUrl() {
049        return unauthorizedUrl;
050    }
051
052    public void setUnauthorizedUrl(String unauthorizedUrl) {
053        this.unauthorizedUrl = unauthorizedUrl;
054    }
055
056    public String getIni() {
057        return ini;
058    }
059
060    public void setIni(String ini) {
061        this.ini = ini;
062    }
063
064    public String getUrlMapping() {
065        return urlMapping;
066    }
067
068    public void setUrlMapping(String urlMapping) {
069        this.urlMapping = urlMapping;
070    }
071
072    public String getInvokeListener() {
073        return invokeListener;
074    }
075
076    public void setInvokeListener(String invokeListener) {
077        this.invokeListener = invokeListener;
078    }
079
080    public boolean isConfigOK() {
081        return ini != null;
082    }
083
084    public String getFilter() {
085        return filter;
086    }
087
088    public void setFilter(String filter) {
089        this.filter = filter;
090    }
091}
092
093
094