⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pkixpolicynode.java

📁 java 文件下载器。可自定义
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   PKIXPolicyNode.java

package org.bouncycastle.jce.provider;

import java.security.cert.PolicyNode;
import java.util.*;

public class PKIXPolicyNode
	implements PolicyNode
{

	protected List children;
	protected int depth;
	protected Set expectedPolicies;
	protected PolicyNode parent;
	protected Set policyQualifiers;
	protected String validPolicy;
	protected boolean critical;

	public PKIXPolicyNode(List _children, int _depth, Set _expectedPolicies, PolicyNode _parent, Set _policyQualifiers, String _validPolicy, boolean _critical)
	{
		children = _children;
		depth = _depth;
		expectedPolicies = _expectedPolicies;
		parent = _parent;
		policyQualifiers = _policyQualifiers;
		validPolicy = _validPolicy;
		critical = _critical;
	}

	public void addChild(PKIXPolicyNode _child)
	{
		children.add(_child);
		_child.setParent(this);
	}

	public Iterator getChildren()
	{
		return children.iterator();
	}

	public int getDepth()
	{
		return depth;
	}

	public Set getExpectedPolicies()
	{
		return expectedPolicies;
	}

	public PolicyNode getParent()
	{
		return parent;
	}

	public Set getPolicyQualifiers()
	{
		return policyQualifiers;
	}

	public String getValidPolicy()
	{
		return validPolicy;
	}

	public boolean hasChildren()
	{
		return !children.isEmpty();
	}

	public boolean isCritical()
	{
		return critical;
	}

	public void removeChild(PKIXPolicyNode _child)
	{
		children.remove(_child);
	}

	public void setCritical(boolean _critical)
	{
		critical = _critical;
	}

	public void setParent(PKIXPolicyNode _parent)
	{
		parent = _parent;
	}

	public String toString()
	{
		return toString("");
	}

	public String toString(String _indent)
	{
		StringBuffer _buf = new StringBuffer();
		_buf.append(_indent);
		_buf.append(validPolicy);
		_buf.append(" {\n");
		for (int i = 0; i < children.size(); i++)
			_buf.append(((PKIXPolicyNode)children.get(i)).toString((new StringBuilder()).append(_indent).append("    ").toString()));

		_buf.append(_indent);
		_buf.append("}\n");
		return _buf.toString();
	}

	public Object clone()
	{
		return copy();
	}

	public PKIXPolicyNode copy()
	{
		HashSet _expectedPolicies = new HashSet();
		for (Iterator _iter = expectedPolicies.iterator(); _iter.hasNext(); _expectedPolicies.add(new String((String)_iter.next())));
		HashSet _policyQualifiers = new HashSet();
		for (Iterator _iter = policyQualifiers.iterator(); _iter.hasNext(); _policyQualifiers.add(new String((String)_iter.next())));
		PKIXPolicyNode _node = new PKIXPolicyNode(new ArrayList(), depth, _expectedPolicies, null, _policyQualifiers, new String(validPolicy), critical);
		PKIXPolicyNode _child;
		for (Iterator _iter = children.iterator(); _iter.hasNext(); _node.addChild(_child))
		{
			_child = ((PKIXPolicyNode)_iter.next()).copy();
			_child.setParent(_node);
		}

		return _node;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -