class OIDCConfig {

    @Nullable
    public Uri getDiscoveryUri() {
        if (mAccount.mDiscoveryUri == null) {
            return null;
        }
        if (mAccount.mDiscoveryUri.contains(OPENID_CONFIGURATION_RESOURCE)
                || mAccount.mDiscoveryUri.contains(OAUTH2_CONFIGURATION_RESOURCE)) {
            return Uri.parse(mAccount.mDiscoveryUri);
        } else {
            return Uri.parse(mAccount.mDiscoveryUri + (mIsOAuth2Configuration ?
                    OAUTH2_CONFIGURATION_RESOURCE : OPENID_CONFIGURATION_RESOURCE));
        }
    }

    private  OIDCConfig(AccountInfo account);

}