# ImportCredentialsRequest

# ImportCredentialsRequest


```
public final class ImportCredentialsRequest implements Parcelable
```

<br />

*** ** * ** ***

Request for importing credentials from another credential provider.

## Summary

| ### Constants |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/android/reference/com/google/android/gms/identitycredentials/ImportCredentialsRequest#REQUEST_TYPE()` |

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/Parcelable.Creator.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/android/gms/identitycredentials/ImportCredentialsRequest>` | `https://developers.google.com/android/reference/com/google/android/gms/identitycredentials/ImportCredentialsRequest#CREATOR()` |

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/com/google/android/gms/identitycredentials/ImportCredentialsRequest#ImportCredentialsRequest(kotlin.String,android.net.Uri)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html requestJson, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html uri)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/android/reference/com/google/android/gms/identitycredentials/ImportCredentialsRequest#getRequestJson()()` the request in JSON format, based on the CXF prototcol |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html` | `https://developers.google.com/android/reference/com/google/android/gms/identitycredentials/ImportCredentialsRequest#getUri()()` the file URI responsible for the export transport |
| `void` | `https://developers.google.com/android/reference/com/google/android/gms/identitycredentials/ImportCredentialsRequest#writeToParcel(android.os.Parcel,kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/Parcel.html dest, int flags)` |

## Constants

### REQUEST_TYPE

```
public static final @NonNull String REQUEST_TYPE
```

## Public fields

### CREATOR

```
public static final @NonNull Parcelable.Creator<@NonNull ImportCredentialsRequest> CREATOR
```

## Public constructors

### ImportCredentialsRequest

```
public ImportCredentialsRequest(@NonNull String requestJson, @NonNull Uri uri)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html requestJson` | the request in JSON format, based on the CXF prototcol |
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/net/Uri.html uri` | the file URI responsible for the export transport |

## Public methods

### getRequestJson

```
public final @NonNull String getRequestJson()
```

the request in JSON format, based on the CXF prototcol

### getUri

```
public final @NonNull Uri getUri()
```

the file URI responsible for the export transport

### writeToParcel

```
public void writeToParcel(@NonNull Parcel dest, int flags)
```