@Test public void isApplicable_NoIdentityGiven_ShouldNotBeApplicable() { GatewayRequest request = mock(GatewayRequest.class); GatewayRequestContext context = mock(GatewayRequestContext.class); when(request.getRequestContext()).thenReturn(context); assertFalse(createSecurityContextFactory(request).isApplicable()); }
@Override protected boolean isApplicable() { GatewayIdentity identity = getIdentitySafe(); if (identity == null) { return false; } return identity.getAccessKey() != null; }
IamSecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { GatewayIdentity identity = getIdentitySafe(); if (identity == null) { return false; } return identity.getAccessKey() != null; } }
IamSecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { GatewayIdentity identity = getIdentitySafe(); if (identity == null) { return false; } return identity.getAccessKey() != null; } protected  IamSecurityContextFactory(@Nonnull GatewayRequest request); }
IamSecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { GatewayIdentity identity = getIdentitySafe(); if (identity == null) { return false; } return identity.getAccessKey() != null; } protected  IamSecurityContextFactory(@Nonnull GatewayRequest request);  }
IamSecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { GatewayIdentity identity = getIdentitySafe(); if (identity == null) { return false; } return identity.getAccessKey() != null; } protected  IamSecurityContextFactory(@Nonnull GatewayRequest request);   }