java.security.cert.PolicyNode Java Examples

The following examples show how to use java.security.cert.PolicyNode. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PKIXPolicyNode.java    From TorrentEngine with GNU General Public License v3.0 6 votes vote down vote up
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;
}
 
Example #2
Source File: PKIXPolicyNode.java    From ripple-lib-java with ISC License 6 votes vote down vote up
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;
}
 
Example #3
Source File: PKIXPolicyNode.java    From RipplePower with Apache License 2.0 6 votes vote down vote up
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;
}
 
Example #4
Source File: PKIXPolicyNode.java    From BiglyBT with GNU General Public License v2.0 6 votes vote down vote up
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;
}
 
Example #5
Source File: PolicyChecker.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the root node of the valid policy tree, or null if the
 * valid policy tree is null. Marks each node of the returned tree
 * immutable and thread-safe.
 *
 * @return the root node of the valid policy tree, or null if
 * the valid policy tree is null
 */
PolicyNode getPolicyTree() {
    if (rootNode == null)
        return null;
    else {
        PolicyNodeImpl policyTree = rootNode.copyTree();
        policyTree.setImmutable();
        return policyTree;
    }
}
 
Example #6
Source File: PolicyChecker.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the root node of the valid policy tree, or null if the
 * valid policy tree is null. Marks each node of the returned tree
 * immutable and thread-safe.
 *
 * @returns the root node of the valid policy tree, or null if
 * the valid policy tree is null
 */
PolicyNode getPolicyTree() {
    if (rootNode == null)
        return null;
    else {
        PolicyNodeImpl policyTree = rootNode.copyTree();
        policyTree.setImmutable();
        return policyTree;
    }
}
 
Example #7
Source File: PolicyChecker.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the root node of the valid policy tree, or null if the
 * valid policy tree is null. Marks each node of the returned tree
 * immutable and thread-safe.
 *
 * @returns the root node of the valid policy tree, or null if
 * the valid policy tree is null
 */
PolicyNode getPolicyTree() {
    if (rootNode == null)
        return null;
    else {
        PolicyNodeImpl policyTree = rootNode.copyTree();
        policyTree.setImmutable();
        return policyTree;
    }
}
 
Example #8
Source File: PolicyChecker.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the root node of the valid policy tree, or null if the
 * valid policy tree is null. Marks each node of the returned tree
 * immutable and thread-safe.
 *
 * @returns the root node of the valid policy tree, or null if
 * the valid policy tree is null
 */
PolicyNode getPolicyTree() {
    if (rootNode == null)
        return null;
    else {
        PolicyNodeImpl policyTree = rootNode.copyTree();
        policyTree.setImmutable();
        return policyTree;
    }
}
 
Example #9
Source File: PolicyChecker.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the root node of the valid policy tree, or null if the
 * valid policy tree is null. Marks each node of the returned tree
 * immutable and thread-safe.
 *
 * @returns the root node of the valid policy tree, or null if
 * the valid policy tree is null
 */
PolicyNode getPolicyTree() {
    if (rootNode == null)
        return null;
    else {
        PolicyNodeImpl policyTree = rootNode.copyTree();
        policyTree.setImmutable();
        return policyTree;
    }
}
 
Example #10
Source File: PolicyChecker.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the root node of the valid policy tree, or null if the
 * valid policy tree is null. Marks each node of the returned tree
 * immutable and thread-safe.
 *
 * @returns the root node of the valid policy tree, or null if
 * the valid policy tree is null
 */
PolicyNode getPolicyTree() {
    if (rootNode == null)
        return null;
    else {
        PolicyNodeImpl policyTree = rootNode.copyTree();
        policyTree.setImmutable();
        return policyTree;
    }
}
 
Example #11
Source File: PolicyChecker.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the root node of the valid policy tree, or null if the
 * valid policy tree is null. Marks each node of the returned tree
 * immutable and thread-safe.
 *
 * @returns the root node of the valid policy tree, or null if
 * the valid policy tree is null
 */
PolicyNode getPolicyTree() {
    if (rootNode == null)
        return null;
    else {
        PolicyNodeImpl policyTree = rootNode.copyTree();
        policyTree.setImmutable();
        return policyTree;
    }
}
 
Example #12
Source File: PolicyChecker.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the root node of the valid policy tree, or null if the
 * valid policy tree is null. Marks each node of the returned tree
 * immutable and thread-safe.
 *
 * @returns the root node of the valid policy tree, or null if
 * the valid policy tree is null
 */
PolicyNode getPolicyTree() {
    if (rootNode == null)
        return null;
    else {
        PolicyNodeImpl policyTree = rootNode.copyTree();
        policyTree.setImmutable();
        return policyTree;
    }
}
 
Example #13
Source File: PolicyChecker.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the root node of the valid policy tree, or null if the
 * valid policy tree is null. Marks each node of the returned tree
 * immutable and thread-safe.
 *
 * @return the root node of the valid policy tree, or null if
 * the valid policy tree is null
 */
PolicyNode getPolicyTree() {
    if (rootNode == null)
        return null;
    else {
        PolicyNodeImpl policyTree = rootNode.copyTree();
        policyTree.setImmutable();
        return policyTree;
    }
}
 
Example #14
Source File: PolicyChecker.java    From j2objc with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the root node of the valid policy tree, or null if the
 * valid policy tree is null. Marks each node of the returned tree
 * immutable and thread-safe.
 *
 * @returns the root node of the valid policy tree, or null if
 * the valid policy tree is null
 */
PolicyNode getPolicyTree() {
    if (rootNode == null)
        return null;
    else {
        PolicyNodeImpl policyTree = rootNode.copyTree();
        policyTree.setImmutable();
        return policyTree;
    }
}
 
Example #15
Source File: PolicyChecker.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the root node of the valid policy tree, or null if the
 * valid policy tree is null. Marks each node of the returned tree
 * immutable and thread-safe.
 *
 * @returns the root node of the valid policy tree, or null if
 * the valid policy tree is null
 */
PolicyNode getPolicyTree() {
    if (rootNode == null)
        return null;
    else {
        PolicyNodeImpl policyTree = rootNode.copyTree();
        policyTree.setImmutable();
        return policyTree;
    }
}
 
Example #16
Source File: PolicyChecker.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the root node of the valid policy tree, or null if the
 * valid policy tree is null. Marks each node of the returned tree
 * immutable and thread-safe.
 *
 * @returns the root node of the valid policy tree, or null if
 * the valid policy tree is null
 */
PolicyNode getPolicyTree() {
    if (rootNode == null)
        return null;
    else {
        PolicyNodeImpl policyTree = rootNode.copyTree();
        policyTree.setImmutable();
        return policyTree;
    }
}
 
Example #17
Source File: PolicyChecker.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the root node of the valid policy tree, or null if the
 * valid policy tree is null. Marks each node of the returned tree
 * immutable and thread-safe.
 *
 * @returns the root node of the valid policy tree, or null if
 * the valid policy tree is null
 */
PolicyNode getPolicyTree() {
    if (rootNode == null)
        return null;
    else {
        PolicyNodeImpl policyTree = rootNode.copyTree();
        policyTree.setImmutable();
        return policyTree;
    }
}
 
Example #18
Source File: PolicyChecker.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the root node of the valid policy tree, or null if the
 * valid policy tree is null. Marks each node of the returned tree
 * immutable and thread-safe.
 *
 * @returns the root node of the valid policy tree, or null if
 * the valid policy tree is null
 */
PolicyNode getPolicyTree() {
    if (rootNode == null)
        return null;
    else {
        PolicyNodeImpl policyTree = rootNode.copyTree();
        policyTree.setImmutable();
        return policyTree;
    }
}
 
Example #19
Source File: PolicyChecker.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the root node of the valid policy tree, or null if the
 * valid policy tree is null. Marks each node of the returned tree
 * immutable and thread-safe.
 *
 * @returns the root node of the valid policy tree, or null if
 * the valid policy tree is null
 */
PolicyNode getPolicyTree() {
    if (rootNode == null)
        return null;
    else {
        PolicyNodeImpl policyTree = rootNode.copyTree();
        policyTree.setImmutable();
        return policyTree;
    }
}
 
Example #20
Source File: PKIXPolicyNode.java    From ripple-lib-java with ISC License 4 votes vote down vote up
public PolicyNode getParent()
{
    return parent;
}
 
Example #21
Source File: PKIXCertPathReviewer.java    From RipplePower with Apache License 2.0 4 votes vote down vote up
/**
 * 
 * @return the valid policy tree, <b>null</b> if no valid policy exists.
 * @throws IllegalStateException if the {@link PKIXCertPathReviewer} was not initialized
 */
public PolicyNode getPolicyTree()
{
    doChecks();
    return policyTree;
}
 
Example #22
Source File: PKIXPolicyNode.java    From RipplePower with Apache License 2.0 4 votes vote down vote up
public PolicyNode getParent()
{
    return parent;
}
 
Example #23
Source File: PKIXCertPathReviewer.java    From ripple-lib-java with ISC License 4 votes vote down vote up
/**
 * 
 * @return the valid policy tree, <b>null</b> if no valid policy exists.
 * @throws IllegalStateException if the {@link PKIXCertPathReviewer} was not initialized
 */
public PolicyNode getPolicyTree()
{
    doChecks();
    return policyTree;
}
 
Example #24
Source File: PKIXPolicyNode.java    From BiglyBT with GNU General Public License v2.0 4 votes vote down vote up
@Override
public PolicyNode getParent()
   {
	return parent;
}
 
Example #25
Source File: PKIXPolicyNode.java    From TorrentEngine with GNU General Public License v3.0 4 votes vote down vote up
public PolicyNode getParent()
   {
	return parent;
}
 
Example #26
Source File: SunCertPathBuilderResult.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a SunCertPathBuilderResult instance.
 *
 * @param certPath the validated <code>CertPath</code>
 * @param trustAnchor a <code>TrustAnchor</code> describing the CA that
 * served as a trust anchor for the certification path
 * @param policyTree the valid policy tree, or <code>null</code>
 * if there are no valid policies
 * @param subjectPublicKey the public key of the subject
 * @param adjList an Adjacency list containing debug information
 */
SunCertPathBuilderResult(CertPath certPath,
    TrustAnchor trustAnchor, PolicyNode policyTree,
    PublicKey subjectPublicKey, AdjacencyList adjList)
{
    super(certPath, trustAnchor, policyTree, subjectPublicKey);
    this.adjList = adjList;
}
 
Example #27
Source File: SunCertPathBuilderResult.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a SunCertPathBuilderResult instance.
 *
 * @param certPath the validated <code>CertPath</code>
 * @param trustAnchor a <code>TrustAnchor</code> describing the CA that
 * served as a trust anchor for the certification path
 * @param policyTree the valid policy tree, or <code>null</code>
 * if there are no valid policies
 * @param subjectPublicKey the public key of the subject
 * @param adjList an Adjacency list containing debug information
 */
SunCertPathBuilderResult(CertPath certPath,
    TrustAnchor trustAnchor, PolicyNode policyTree,
    PublicKey subjectPublicKey, AdjacencyList adjList)
{
    super(certPath, trustAnchor, policyTree, subjectPublicKey);
    this.adjList = adjList;
}
 
Example #28
Source File: SunCertPathBuilderResult.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a SunCertPathBuilderResult instance.
 *
 * @param certPath the validated <code>CertPath</code>
 * @param trustAnchor a <code>TrustAnchor</code> describing the CA that
 * served as a trust anchor for the certification path
 * @param policyTree the valid policy tree, or <code>null</code>
 * if there are no valid policies
 * @param subjectPublicKey the public key of the subject
 * @param adjList an Adjacency list containing debug information
 */
SunCertPathBuilderResult(CertPath certPath,
    TrustAnchor trustAnchor, PolicyNode policyTree,
    PublicKey subjectPublicKey, AdjacencyList adjList)
{
    super(certPath, trustAnchor, policyTree, subjectPublicKey);
    this.adjList = adjList;
}
 
Example #29
Source File: SunCertPathBuilderResult.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a SunCertPathBuilderResult instance.
 *
 * @param certPath the validated <code>CertPath</code>
 * @param trustAnchor a <code>TrustAnchor</code> describing the CA that
 * served as a trust anchor for the certification path
 * @param policyTree the valid policy tree, or <code>null</code>
 * if there are no valid policies
 * @param subjectPublicKey the public key of the subject
 * @param adjList an Adjacency list containing debug information
 */
SunCertPathBuilderResult(CertPath certPath,
    TrustAnchor trustAnchor, PolicyNode policyTree,
    PublicKey subjectPublicKey, AdjacencyList adjList)
{
    super(certPath, trustAnchor, policyTree, subjectPublicKey);
    this.adjList = adjList;
}
 
Example #30
Source File: SunCertPathBuilderResult.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a SunCertPathBuilderResult instance.
 *
 * @param certPath the validated <code>CertPath</code>
 * @param trustAnchor a <code>TrustAnchor</code> describing the CA that
 * served as a trust anchor for the certification path
 * @param policyTree the valid policy tree, or <code>null</code>
 * if there are no valid policies
 * @param subjectPublicKey the public key of the subject
 * @param adjList an Adjacency list containing debug information
 */
SunCertPathBuilderResult(CertPath certPath,
    TrustAnchor trustAnchor, PolicyNode policyTree,
    PublicKey subjectPublicKey, AdjacencyList adjList)
{
    super(certPath, trustAnchor, policyTree, subjectPublicKey);
    this.adjList = adjList;
}