@Test public void isApplicable_NoClaimsGiven_ShouldNotBeApplicable() { GatewayRequestContext context = mock(GatewayRequestContext.class); when(context.getAuthorizer()).thenReturn(Collections.emptyMap()); GatewayRequest request = mock(GatewayRequest.class); when(request.getRequestContext()).thenReturn(context); assertFalse(createSecurityContextFactory(request).isApplicable()); }
@Override protected boolean isApplicable() { return getRawClaimsSafe() != null; }
CognitoUserPoolSecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { return getRawClaimsSafe() != null; } }
CognitoUserPoolSecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { return getRawClaimsSafe() != null; } protected  CognitoUserPoolSecurityContextFactory(@Nonnull GatewayRequest request); }
CognitoUserPoolSecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { return getRawClaimsSafe() != null; } protected  CognitoUserPoolSecurityContextFactory(@Nonnull GatewayRequest request);  }
CognitoUserPoolSecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { return getRawClaimsSafe() != null; } protected  CognitoUserPoolSecurityContextFactory(@Nonnull GatewayRequest request);   }