org.nervousync.security.factory.SecureConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utils-jdk11 Show documentation
Show all versions of utils-jdk11 Show documentation
Java utility collections, development by Nervousync Studio (NSYC)
/*
* Licensed to the Nervousync Studio (NSYC) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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 org.nervousync.security.factory;
import org.nervousync.beans.core.BeanObject;
import jakarta.xml.bind.annotation.*;
/**
* Secure configure information define
* Using for protect password in any configure files
* 安全配置信息定义
* 用于在任何配置文件中保护密码
*
* @author Steven Wee [email protected]
* @version $Revision: 1.0.0 $ $Date: Dec 12, 2020 23:05:27 $
*/
@XmlType(name = "secure_config", namespace = "https://nervousync.org/schemas/secure")
@XmlRootElement(name = "secure_config", namespace = "https://nervousync.org/schemas/secure")
@XmlAccessorType(XmlAccessType.NONE)
public final class SecureConfig extends BeanObject {
/**
* Serial version UID
* 序列化UID
*/
private static final long serialVersionUID = -4333190425770207630L;
/**
* Secure algorithm
* 安全算法
*/
@XmlElement(name = "secure_algorithm")
private SecureFactory.SecureAlgorithm secureAlgorithm = null;
/**
* Secure key
* 安全密钥
*/
@XmlElement(name = "secure_key")
private String secureKey = null;
/**
* Constructor method for SecureConfig
* 安全配置信息构造方法
*/
public SecureConfig() {
}
/**
* Getter method for secure algorithm
* 安全算法的Getter方法
*
* @return Secure algorithm
* 安全算法
*/
public SecureFactory.SecureAlgorithm getSecureAlgorithm() {
return secureAlgorithm;
}
/**
* Setter method for secure algorithm
* 安全算法的Setter方法
*
* @param secureAlgorithm Secure algorithm
* 安全算法
*/
public void setSecureAlgorithm(SecureFactory.SecureAlgorithm secureAlgorithm) {
this.secureAlgorithm = secureAlgorithm;
}
/**
* Getter method for secure key
* 安全密钥的Getter方法
*
* @return Secure key
* 安全密钥
*/
public String getSecureKey() {
return secureKey;
}
/**
* Setter method for secure key
* 安全密钥的Setter方法
*
* @param secureKey Secure key
* 安全密钥
*/
public void setSecureKey(String secureKey) {
this.secureKey = secureKey;
}
}