Class CognitoIdentityProvider

    • Method Detail

      • providerName

        public final String providerName()

        The provider name for an Amazon Cognito user pool. For example, cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

        Returns:
        The provider name for an Amazon Cognito user pool. For example, cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.
      • clientId

        public final String clientId()

        The client ID for the Amazon Cognito user pool.

        Returns:
        The client ID for the Amazon Cognito user pool.
      • serverSideTokenCheck

        public final Boolean serverSideTokenCheck()

        TRUE if server-side token validation is enabled for the identity provider’s token.

        Once you set ServerSideTokenCheck to TRUE for an identity pool, that identity pool will check with the integrated user pools to make sure that the user has not been globally signed out or deleted before the identity pool provides an OIDC token or AWS credentials for the user.

        If the user is signed out or deleted, the identity pool will return a 400 Not Authorized error.

        Returns:
        TRUE if server-side token validation is enabled for the identity provider’s token.

        Once you set ServerSideTokenCheck to TRUE for an identity pool, that identity pool will check with the integrated user pools to make sure that the user has not been globally signed out or deleted before the identity pool provides an OIDC token or AWS credentials for the user.

        If the user is signed out or deleted, the identity pool will return a 400 Not Authorized error.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)