# PublicKeyCredentialUserEntity

public class **PublicKeyCredentialUserEntity** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
implements [Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) This class is used to supply additional parameters about the user account when creating a
new Credential.

See [Public Key Credential
User Entity Definition](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/www.w3.org/TR/webauthn#sctn-user-credential-params)

### Inherited Constant Summary

From interface android.os.Parcelable

|---|---|---|
| int | CONTENTS_FILE_DESCRIPTOR |   |
| int | PARCELABLE_WRITE_RETURN_VALUE |   |

### Public Constructor Summary

|---|---|
|   | [PublicKeyCredentialUserEntity](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/PublicKeyCredentialUserEntity#PublicKeyCredentialUserEntity(byte[],%20java.lang.String,%20java.lang.String,%20java.lang.String))(byte\[\] id, [String](https://developer.android.com/reference/java/lang/String.html) name, [String](https://developer.android.com/reference/java/lang/String.html) icon, [String](https://developer.android.com/reference/java/lang/String.html) displayName) |
|   | [PublicKeyCredentialUserEntity](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/PublicKeyCredentialUserEntity#PublicKeyCredentialUserEntity(com.google.protobuf.ByteString,%20java.lang.String,%20java.lang.String,%20java.lang.String))(ByteString id, [String](https://developer.android.com/reference/java/lang/String.html) name, [String](https://developer.android.com/reference/java/lang/String.html) icon, [String](https://developer.android.com/reference/java/lang/String.html) displayName) |

### Public Method Summary

|---|---|
| boolean | [equals](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/PublicKeyCredentialUserEntity#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) obj) |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getDisplayName](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/PublicKeyCredentialUserEntity#getDisplayName())() |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getIcon](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/PublicKeyCredentialUserEntity#getIcon())() |
| byte\[\] | [getId](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/PublicKeyCredentialUserEntity#getId())() |
| ByteString | [getIdAsByteString](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/PublicKeyCredentialUserEntity#getIdAsByteString())() |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getName](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/PublicKeyCredentialUserEntity#getName())() |
| int | [hashCode](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/PublicKeyCredentialUserEntity#hashCode())() |
| void | [writeToParcel](https://developers.google.com/android/reference/com/google/android/gms/fido/fido2/api/common/PublicKeyCredentialUserEntity#writeToParcel(android.os.Parcel,%20int))([Parcel](https://developer.android.com/reference/android/os/Parcel.html) dest, int flags) |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface android.os.Parcelable

|---|---|
| abstract int | describeContents() |
| abstract void | writeToParcel([Parcel](https://developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |

## Public Constructors

#### public **PublicKeyCredentialUserEntity** (byte\[\] id, [String](https://developer.android.com/reference/java/lang/String.html) name, [String](https://developer.android.com/reference/java/lang/String.html) icon, [String](https://developer.android.com/reference/java/lang/String.html) displayName)

#### public **PublicKeyCredentialUserEntity** (ByteString id, [String](https://developer.android.com/reference/java/lang/String.html) name, [String](https://developer.android.com/reference/java/lang/String.html) icon, [String](https://developer.android.com/reference/java/lang/String.html) displayName)

## Public Methods

#### public boolean **equals** ([Object](https://developer.android.com/reference/java/lang/Object.html) obj)

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getDisplayName** ()

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getIcon** ()

#### public byte\[\] **getId** ()

#### public ByteString **getIdAsByteString** ()

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getName** ()

#### public int **hashCode** ()

#### public void **writeToParcel** ([Parcel](https://developer.android.com/reference/android/os/Parcel.html) dest, int flags)