@Test public void isApplicable_NoCognitoAuthenticationTypeGiven_ShouldNotBeApplicable() { GatewayRequest request = createRequestMock(null, null, null, null, null, null, null, null); assertFalse(createSecurityContextFactory(request).isApplicable()); }
@Override protected boolean isApplicable() { GatewayIdentity identity = getIdentitySafe(); if (identity == null) { return false; } return identity.getCognitoAuthenticationType() != null; }
CognitoIdentitySecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { GatewayIdentity identity = getIdentitySafe(); if (identity == null) { return false; } return identity.getCognitoAuthenticationType() != null; } }
CognitoIdentitySecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { GatewayIdentity identity = getIdentitySafe(); if (identity == null) { return false; } return identity.getCognitoAuthenticationType() != null; } protected  CognitoIdentitySecurityContextFactory(GatewayRequest request); }
CognitoIdentitySecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { GatewayIdentity identity = getIdentitySafe(); if (identity == null) { return false; } return identity.getCognitoAuthenticationType() != null; } protected  CognitoIdentitySecurityContextFactory(GatewayRequest request);  }
CognitoIdentitySecurityContextFactory extends AbstractSecurityContextFactory { @Override protected boolean isApplicable() { GatewayIdentity identity = getIdentitySafe(); if (identity == null) { return false; } return identity.getCognitoAuthenticationType() != null; } protected  CognitoIdentitySecurityContextFactory(GatewayRequest request);   }