open more visibility for java > 9 run (helps on some container setup) master
authorRomain Manni-Bucau <rmannibucau@gmail.com>
Tue, 19 Jan 2021 16:59:41 +0000 (17:59 +0100)
committerRomain Manni-Bucau <rmannibucau@gmail.com>
Tue, 19 Jan 2021 16:59:41 +0000 (17:59 +0100)
src/main/java/org/apache/geronimo/microprofile/impl/jwtauth/cdi/GeronimoJwtAuthExtension.java
src/main/java/org/apache/geronimo/microprofile/impl/jwtauth/jwt/DateValidator.java

index ed6d775f2d0603248f78ff80c29acc3e26254b11..880d400f1b3a6568491900b1f160c613cf31229d 100644 (file)
@@ -77,20 +77,20 @@ public class GeronimoJwtAuthExtension implements Extension {
     private final Collection<Throwable> errors = new ArrayList<>();
     private JsonProvider json;
 
-    void setClaimMethodsBinding(@Observes final BeforeBeanDiscovery beforeBeanDiscovery) {
+    public void setClaimMethodsBinding(@Observes final BeforeBeanDiscovery beforeBeanDiscovery) {
         beforeBeanDiscovery.configureQualifier(Claim.class)
                 .methods().forEach(m -> m.remove(it -> it.annotationType() == Nonbinding.class));
         json = JsonProvider.provider();
     }
 
-    void captureInjections(@Observes final ProcessInjectionPoint<?, ?> processInjectionPoint) {
+    public void captureInjections(@Observes final ProcessInjectionPoint<?, ?> processInjectionPoint) {
         final InjectionPoint injectionPoint = processInjectionPoint.getInjectionPoint();
         ofNullable(injectionPoint.getAnnotated().getAnnotation(Claim.class))
                 .flatMap(claim -> createInjection(claim, injectionPoint.getType()))
                 .ifPresent(injectionPoints::add);
     }
 
-    void addClaimBeans(@Observes final AfterBeanDiscovery afterBeanDiscovery) {
+    public void addClaimBeans(@Observes final AfterBeanDiscovery afterBeanDiscovery) {
         // it is another instance than th eone used in our initializer but it should be backed by the same impl
         afterBeanDiscovery.addBean()
                 .id(GeronimoJwtAuthExtension.class.getName() + "#" + GeronimoJwtAuthConfig.class.getName())
@@ -126,7 +126,7 @@ public class GeronimoJwtAuthExtension implements Extension {
         injectionPoints.clear();
     }
 
-    void afterDeployment(@Observes final AfterDeploymentValidation afterDeploymentValidation) {
+    public void afterDeployment(@Observes final AfterDeploymentValidation afterDeploymentValidation) {
         errors.forEach(afterDeploymentValidation::addDeploymentProblem);
     }
 
index 9d074a90189150fa6c9ee46af050a4261e443a16..77ef98f194f5a3c979d5798b6f098ddaba224b93 100644 (file)
@@ -49,7 +49,7 @@ public class DateValidator {
                         .orElse(60L))));
     }
 
-    void checkInterval(final JsonObject payload) {
+    public void checkInterval(final JsonObject payload) {
         long now = -1;
 
         final JsonNumber exp = payload.getJsonNumber(Claims.exp.name());