📄 defaultsecurity.java
字号:
package org.j3de.security;
import java.security.PublicKey;
import java.security.Signature;
import javax.crypto.Cipher;
import javax.security.auth.callback.CallbackHandler;
import org.w3c.dom.Node;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.j3de.util.ConfigHelper;
public class DefaultSecurity implements SecurityFactory {
private ConfigHelper helper;
public PublicKey getPublicKey() {
return null;
}
public Cipher getDecodingCipher() {
return null;
}
public Cipher getEncodingCipher() {
return null;
}
public Signature getSignature() {
return null;
}
public Signature getVerifySignature(PublicKey sender) {
return null;
}
public void configure(Node node, Document nodeFactory) {
if (helper == null)
helper = new ConfigHelper(node, nodeFactory, false);
}
public Node configure(Document nodeFactory, String componentName) {
Element component = ConfigHelper.newComponent(nodeFactory, componentName, this);
helper = new ConfigHelper(component, nodeFactory, true);
configure(component, nodeFactory);
return component;
}
public boolean isConfigurationChanged() {
return helper.isConfigurationChanged();
}
public void configurationSaved() {
helper.configurationSaved();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -