sun.security.x509.PolicyMappingsExtension Java Examples
The following examples show how to use
sun.security.x509.PolicyMappingsExtension.
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: DefaultCriticality.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public static void main(String [] args) throws Exception { PolicyConstraintsExtension pce = new PolicyConstraintsExtension(-1,-1); if (!pce.isCritical()) { throw new Exception("PolicyConstraintsExtension should be " + "critical by default"); } PolicyMappingsExtension pme = new PolicyMappingsExtension(); if (!pme.isCritical()) { throw new Exception("PolicyMappingsExtension should be " + "critical by default"); } System.out.println("Test passed."); }