test/jdk/java/net/httpclient/ssltest/CertificateTest.java
branchhttp-client-branch
changeset 56272 7394452786ba
parent 56270 5c861402c69e
child 56368 c10279a27b41
equal deleted inserted replaced
56271:e1eab097c6d7 56272:7394452786ba
    35  * @test
    35  * @test
    36  * @build Server CertificateTest
    36  * @build Server CertificateTest
    37  * @run main/othervm CertificateTest good.keystore expectSuccess
    37  * @run main/othervm CertificateTest good.keystore expectSuccess
    38  * @run main/othervm CertificateTest bad.keystore expectFailure
    38  * @run main/othervm CertificateTest bad.keystore expectFailure
    39  * @run main/othervm
    39  * @run main/othervm
    40  *      -Djdk.internal.http.disableHostnameVerification
    40  *      -Djdk.internal.httpclient.disableHostnameVerification
    41  *       CertificateTest bad.keystore expectSuccess
    41  *       CertificateTest bad.keystore expectSuccess
    42  * @run main/othervm
    42  * @run main/othervm
    43  *      -Djdk.internal.http.disableHostnameVerification=true
    43  *      -Djdk.internal.httpclient.disableHostnameVerification=true
    44  *       CertificateTest bad.keystore expectSuccess
    44  *       CertificateTest bad.keystore expectSuccess
    45  * @run main/othervm
    45  * @run main/othervm
    46  *      -Djdk.internal.http.disableHostnameVerification=false
    46  *      -Djdk.internal.httpclient.disableHostnameVerification=false
    47  *       CertificateTest bad.keystore expectFailure
    47  *       CertificateTest bad.keystore expectFailure
    48  * @run main/othervm
    48  * @run main/othervm
    49  *      -Djdk.internal.http.disableHostnameVerification=xxyyzz
    49  *      -Djdk.internal.httpclient.disableHostnameVerification=xxyyzz
    50  *       CertificateTest bad.keystore expectFailure
    50  *       CertificateTest bad.keystore expectFailure
    51  */
    51  */
    52 
    52 
    53 /**
    53 /**
    54  * The test runs a number of times. In all cases it uses a valid self-signed certificate
    54  * The test runs a number of times. In all cases it uses a valid self-signed certificate