Skip to content
Permalink
Browse files
open more visibility for java > 9 run (helps on some container setup)
  • Loading branch information
rmannibucau committed Jan 19, 2021
1 parent 863e920 commit 59bb4a8f053279a4121f52d4ccf806b87a4ed792
Showing 2 changed files with 5 additions and 5 deletions.
@@ -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 @@ void addClaimBeans(@Observes final AfterBeanDiscovery afterBeanDiscovery) {
injectionPoints.clear();
}

void afterDeployment(@Observes final AfterDeploymentValidation afterDeploymentValidation) {
public void afterDeployment(@Observes final AfterDeploymentValidation afterDeploymentValidation) {
errors.forEach(afterDeploymentValidation::addDeploymentProblem);
}

@@ -49,7 +49,7 @@ private void init() {
.orElse(60L))));
}

void checkInterval(final JsonObject payload) {
public void checkInterval(final JsonObject payload) {
long now = -1;

final JsonNumber exp = payload.getJsonNumber(Claims.exp.name());

0 comments on commit 59bb4a8

Please sign in to comment.