-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jorge Bescos Gascon <[email protected]>
- Loading branch information
Showing
15 changed files
with
260 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
.../src/test/java/org/glassfish/tyrus/container/jdk/client/SSLFilterNoTLSDefinitionTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0, which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the | ||
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
* version 2 with the GNU Classpath Exception, which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
*/ | ||
|
||
package org.glassfish.tyrus.container.jdk.client; | ||
|
||
import org.junit.Before; | ||
|
||
public class SSLFilterNoTLSDefinitionTest extends SslFilterTest { | ||
|
||
@Before | ||
public void before() { | ||
System.setProperty("javax.net.ssl.keyStore", this.getClass().getResource(SERVER_KEY_STORE).getPath()); | ||
System.setProperty("javax.net.ssl.keyStorePassword", PASSWORD); | ||
System.setProperty("javax.net.ssl.trustStore", this.getClass().getResource(SERVER_TRUST_STORE).getPath()); | ||
System.setProperty("javax.net.ssl.trustStorePassword", PASSWORD); | ||
} | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
...dk-client/src/test/java/org/glassfish/tyrus/container/jdk/client/SSLFilterTLSv12Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0, which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the | ||
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
* version 2 with the GNU Classpath Exception, which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
*/ | ||
|
||
package org.glassfish.tyrus.container.jdk.client; | ||
|
||
import org.junit.Before; | ||
|
||
public class SSLFilterTLSv12Test extends SslFilterTest { | ||
|
||
@Before | ||
public void before() { | ||
System.setProperty("javax.net.ssl.keyStore", this.getClass().getResource(SERVER_KEY_STORE).getPath()); | ||
System.setProperty("javax.net.ssl.keyStorePassword", PASSWORD); | ||
System.setProperty("javax.net.ssl.trustStore", this.getClass().getResource(SERVER_TRUST_STORE).getPath()); | ||
System.setProperty("javax.net.ssl.trustStorePassword", PASSWORD); | ||
System.setProperty("jdk.tls.server.protocols", "TLSv1.2"); | ||
System.setProperty("jdk.tls.client.protocols", "TLSv1.2"); | ||
} | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
...dk-client/src/test/java/org/glassfish/tyrus/container/jdk/client/SSLFilterTLSv13Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0, which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the | ||
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
* version 2 with the GNU Classpath Exception, which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
*/ | ||
|
||
package org.glassfish.tyrus.container.jdk.client; | ||
|
||
import org.junit.Before; | ||
|
||
public class SSLFilterTLSv13Test extends SslFilterTest { | ||
|
||
@Before | ||
public void before() { | ||
System.setProperty("javax.net.ssl.keyStore", this.getClass().getResource(SERVER_KEY_STORE).getPath()); | ||
System.setProperty("javax.net.ssl.keyStorePassword", PASSWORD); | ||
System.setProperty("javax.net.ssl.trustStore", this.getClass().getResource(SERVER_TRUST_STORE).getPath()); | ||
System.setProperty("javax.net.ssl.trustStorePassword", PASSWORD); | ||
System.setProperty("jdk.tls.server.protocols", "TLSv1.3"); | ||
System.setProperty("jdk.tls.client.protocols", "TLSv1.3"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Alias name: clientkey | ||
Creation date: Jun 22, 2020 | ||
Entry type: PrivateKeyEntry | ||
Certificate chain length: 1 | ||
Certificate[1]: | ||
-----BEGIN CERTIFICATE----- | ||
MIIDjTCCAnWgAwIBAgIEd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||
V3Dt68wTlWNRYm9X6uVpNRG7fy7/goeJhAXuVER9Gtl/LQ6GJyZjVxYemckoXWDY | ||
DCqVlzsZpnyoI2lrYXlcT3liPlRLJjqnWvmmF9GyqiIVeng9VTfStsEQ6LUfwKQO | ||
dtvwYhbVtL++fuX/99WYCDRL8mSFu8REruQln3TJf79wOQ14O0H5jWjr4QoeOIf9 | ||
aw== | ||
-----END CERTIFICATE----- |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.