@Test public void isApplicable_NoAuthorizerDateGiven_ShouldNotBeApplicable() { GatewayRequestContext context = mock(GatewayRequestContext.class); when(context.getAuthorizer()).thenReturn(null); GatewayRequest request = mock(GatewayRequest.class); when(request.getRequestContext()).thenReturn(context); assertFalse(createSecurityContextFactory(request).isApplicable()); }
@Override protected boolean isApplicable() { return getRawPrincipalIdSafe() != null; }
CustomAuthorizerSecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { return getRawPrincipalIdSafe() != null; } }
CustomAuthorizerSecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { return getRawPrincipalIdSafe() != null; } protected  CustomAuthorizerSecurityContextFactory(GatewayRequest request); }
CustomAuthorizerSecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { return getRawPrincipalIdSafe() != null; } protected  CustomAuthorizerSecurityContextFactory(GatewayRequest request);  }
CustomAuthorizerSecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { return getRawPrincipalIdSafe() != null; } protected  CustomAuthorizerSecurityContextFactory(GatewayRequest request);   }