defaultsecurity.java

来自「Java 3D Desktop Environment旨在使用Java 3D来创」· Java 代码 · 共 59 行

JAVA
59
字号
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 + =
减小字号Ctrl + -
显示快捷键?