@@ -274,6 +274,7 @@ public CognitoUserPool(Context context, String userPoolId, String clientId, Stri
274274 this .pinpointEndpointId = CognitoPinpointSharedContext .getPinpointEndpoint (context , pinpointAppId );
275275 }
276276
277+
277278 /**
278279 * Constructs a user-pool with default {@link ClientConfiguration}.
279280 *
@@ -302,37 +303,15 @@ public CognitoUserPool(Context context, String userPoolId, String clientId, Stri
302303 * @param pinpointAppId REQUIRED: AWS Pinpoint App Id for analytics.
303304 */
304305 public CognitoUserPool (Context context , String userPoolId , String clientId , String clientSecret , AmazonCognitoIdentityProvider client , String pinpointAppId ) {
305- this (context , userPoolId , clientId , clientSecret , client , pinpointAppId , null );
306- }
307-
308- /**
309- * Constructs a user-pool with custom endpoint for Cognito User Pool
310- *
311- * @param context REQUIRED: Android application context.
312- * @param userPoolId REQUIRED: User-pool-Id of the user-pool.
313- * @param clientId REQUIRED: Client-Id generated for this app and user-pool at the
314- * Cognito Identity Provider developer console.
315- * @param clientSecret REQUIRED: Client Secret generated for this app and user-pool at
316- * the Cognito Identity Provider developer console.
317- * @param pinpointAppId REQUIRED: AWS Pinpoint App Id for analytics.
318- * @param cognitoUserPoolCustomEndpoint REQUIRED: Custom endpoint for Cognito Userpool
319- */
320- public CognitoUserPool (Context context , String userPoolId , String clientId , String clientSecret , AmazonCognitoIdentityProvider client , String pinpointAppId , String cognitoUserPoolCustomEndpoint ) {
321306 initialize (context );
322307 this .context = context ;
323308 this .userPoolId = userPoolId ;
324309 this .clientId = clientId ;
325310 this .clientSecret = clientSecret ;
326311 this .client = client ;
327312 this .pinpointEndpointId = CognitoPinpointSharedContext .getPinpointEndpoint (context , pinpointAppId );
328-
329- // check if the custom endpoint is not empty
330- if (cognitoUserPoolCustomEndpoint != null && !cognitoUserPoolCustomEndpoint .isEmpty ()) {
331- this .client .setEndpoint (cognitoUserPoolCustomEndpoint );
332- }
333313 }
334314
335-
336315 private void initialize (final Context context ) {
337316 this .awsKeyValueStore = new AWSKeyValueStore (context ,
338317 DEFAULT_SHARED_PREFERENCES_NAME ,
0 commit comments