🔥 移除无效代码

pull/26/MERGE
smallbun 1 year ago
parent 54716b9f35
commit 4aaeabbddb

@ -1,58 +0,0 @@
/*
* eiam-authentication - Employee Identity and Access Management
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cn.topiam.employee.authentication.mfa.jackjson;
import com.fasterxml.jackson.core.Version;
import com.fasterxml.jackson.databind.Module;
import cn.topiam.employee.authentication.mfa.authentication.MfaAuthentication;
/**
*
* @author TopIAM
* Created by support@topiam.cn on 2023/7/14 21:45
*/
public class MfaJacksonModule extends Module {
/**
* Method that returns a display that can be used by Jackson
* for informational purposes, as well as in associating extensions with
* module that provides them.
*/
@Override
public String getModuleName() {
return MfaJacksonModule.class.getName();
}
/**
* Method that returns version of this module. Can be used by Jackson for
* informational purposes.
*/
@Override
public Version version() {
return new Version(1, 0, 0, null, null, null);
}
@Override
public void setupModule(SetupContext context) {
//@formatter:off
context.setMixInAnnotations(MfaAuthentication.class, MfaAuthenticationTokenMixin.class);
//@formatter:on
}
}
Loading…
Cancel
Save