Java Code Examples for sun.security.provider.certpath.PKIX.BuilderParams#initialPolicies()

The following examples show how to use sun.security.provider.certpath.PKIX.BuilderParams#initialPolicies() . 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: ReverseBuilder.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Initialize the builder with the input parameters.
 *
 * @param params the parameter set used to build a certification path
 */
ReverseBuilder(BuilderParams buildParams) {
    super(buildParams);

    Set<String> initialPolicies = buildParams.initialPolicies();
    initPolicies = new HashSet<String>();
    if (initialPolicies.isEmpty()) {
        // if no initialPolicies are specified by user, set
        // initPolicies to be anyPolicy by default
        initPolicies.add(PolicyChecker.ANY_POLICY);
    } else {
        initPolicies.addAll(initialPolicies);
    }
}
 
Example 2
Source File: ReverseBuilder.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Initialize the builder with the input parameters.
 *
 * @param params the parameter set used to build a certification path
 */
ReverseBuilder(BuilderParams buildParams) {
    super(buildParams);

    Set<String> initialPolicies = buildParams.initialPolicies();
    initPolicies = new HashSet<String>();
    if (initialPolicies.isEmpty()) {
        // if no initialPolicies are specified by user, set
        // initPolicies to be anyPolicy by default
        initPolicies.add(PolicyChecker.ANY_POLICY);
    } else {
        initPolicies.addAll(initialPolicies);
    }
}
 
Example 3
Source File: ReverseBuilder.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Initialize the builder with the input parameters.
 *
 * @param params the parameter set used to build a certification path
 */
ReverseBuilder(BuilderParams buildParams) {
    super(buildParams);

    Set<String> initialPolicies = buildParams.initialPolicies();
    initPolicies = new HashSet<String>();
    if (initialPolicies.isEmpty()) {
        // if no initialPolicies are specified by user, set
        // initPolicies to be anyPolicy by default
        initPolicies.add(PolicyChecker.ANY_POLICY);
    } else {
        initPolicies.addAll(initialPolicies);
    }
}
 
Example 4
Source File: ReverseBuilder.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Initialize the builder with the input parameters.
 *
 * @param params the parameter set used to build a certification path
 */
ReverseBuilder(BuilderParams buildParams) {
    super(buildParams);

    Set<String> initialPolicies = buildParams.initialPolicies();
    initPolicies = new HashSet<String>();
    if (initialPolicies.isEmpty()) {
        // if no initialPolicies are specified by user, set
        // initPolicies to be anyPolicy by default
        initPolicies.add(PolicyChecker.ANY_POLICY);
    } else {
        initPolicies.addAll(initialPolicies);
    }
}
 
Example 5
Source File: ReverseBuilder.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Initialize the builder with the input parameters.
 *
 * @param params the parameter set used to build a certification path
 */
ReverseBuilder(BuilderParams buildParams) {
    super(buildParams);

    Set<String> initialPolicies = buildParams.initialPolicies();
    initPolicies = new HashSet<String>();
    if (initialPolicies.isEmpty()) {
        // if no initialPolicies are specified by user, set
        // initPolicies to be anyPolicy by default
        initPolicies.add(PolicyChecker.ANY_POLICY);
    } else {
        initPolicies.addAll(initialPolicies);
    }
}
 
Example 6
Source File: ReverseBuilder.java    From j2objc with Apache License 2.0 5 votes vote down vote up
/**
 * Initialize the builder with the input parameters.
 *
 * @param params the parameter set used to build a certification path
 */
ReverseBuilder(BuilderParams buildParams) {
    super(buildParams);

    Set<String> initialPolicies = buildParams.initialPolicies();
    initPolicies = new HashSet<String>();
    if (initialPolicies.isEmpty()) {
        // if no initialPolicies are specified by user, set
        // initPolicies to be anyPolicy by default
        initPolicies.add(PolicyChecker.ANY_POLICY);
    } else {
        initPolicies.addAll(initialPolicies);
    }
}