jdk/test/java/security/Provider/SupportsParameter.java
changeset 40416 5d91b2fd668c
parent 5506 202f599c92aa
equal deleted inserted replaced
40415:256109602af0 40416:5d91b2fd668c
     1 /*
     1 /*
     2  * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /**
    24 /**
    25  * @test
    25  * @test
    26  * @bug 4911081
    26  * @bug 4911081 8130181
    27  * @summary verify that Provider.Service.supportsParameter() works
    27  * @summary verify that Provider.Service.supportsParameter() works
    28  * @author Andreas Sterbenz
    28  * @author Andreas Sterbenz
    29  */
    29  */
    30 
    30 
    31 import java.security.*;
    31 import java.security.*;
   102         System.out.println("Passed");
   102         System.out.println("Passed");
   103     }
   103     }
   104 
   104 
   105     private static class MyProvider extends Provider {
   105     private static class MyProvider extends Provider {
   106         MyProvider() {
   106         MyProvider() {
   107             super("MyProvider", 1.0d, "MyProvider");
   107             super("MyProvider", "1.0", "MyProvider");
   108 
   108 
   109             put("Signature.DSA0", "foo.DSA0");
   109             put("Signature.DSA0", "foo.DSA0");
   110 
   110 
   111             put("Signature.DSA", "foo.DSA");
   111             put("Signature.DSA", "foo.DSA");
   112             put("Signature.DSA SupportedKeyClasses",
   112             put("Signature.DSA SupportedKeyClasses",