-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove use of
sun.security.x509.*
to support Java 17
- Remove use of "sun.security.x509.*" and replace it with "org.bouncycastle.asn1". - Update policy with apim 3.20.22 dependencies - Fix Unit test on CRL validation - Adds integration tests (@GatewayTest)
- Loading branch information
1 parent
50a43f3
commit 98cb397
Showing
43 changed files
with
1,525 additions
and
134 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
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 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 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 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 @@ | ||
Tests rely on generated keys and certificates, to regenerate them, please refer to the [dedicated documentation](./resources/io/gravitee/policy/jws/cert-with-crl/README.md). |
38 changes: 38 additions & 0 deletions
38
src/test/java/io/gravitee/policy/jws/ConfigurableStreamHandlerFactory.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,38 @@ | ||
/** | ||
* Copyright (C) 2015 The Gravitee team (http://gravitee.io) | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.gravitee.policy.jws; | ||
|
||
import java.net.URLStreamHandler; | ||
import java.net.URLStreamHandlerFactory; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
class ConfigurableStreamHandlerFactory implements URLStreamHandlerFactory { | ||
private final Map<String, URLStreamHandler> protocolHandlers; | ||
|
||
public ConfigurableStreamHandlerFactory(String protocol, URLStreamHandler urlHandler) { | ||
protocolHandlers = new HashMap<String, URLStreamHandler>(); | ||
addHandler(protocol, urlHandler); | ||
} | ||
|
||
public void addHandler(String protocol, URLStreamHandler urlHandler) { | ||
protocolHandlers.put(protocol, urlHandler); | ||
} | ||
|
||
public URLStreamHandler createURLStreamHandler(String protocol) { | ||
return protocolHandlers.get(protocol); | ||
} | ||
} |
Oops, something went wrong.