Google is committed to advancing racial equity for Black communities. See how.

MakeCredentialOptions

public class MakeCredentialOptions extends RequestOptions

This class is used to supply options when creating a new credential.

Nested Class Summary

class MakeCredentialOptions.Builder Builds MakeCredentialOptions

Inherited Constant Summary

Public Constructor Summary

MakeCredentialOptions(PublicKeyCredentialEntity rp, PublicKeyCredentialUserEntity user, byte[] challenge, List<PublicKeyCredentialParameters> parameters, Double timeoutSeconds, List<PublicKeyCredentialDescriptor> excludeList, AuthenticatorSelectionCriteria authenticatorSelection, Integer requestId, TokenBindingIdValue tokenBindingIdValue, AuthenticationExtensions authenticationExtensions)

Public Method Summary

static MakeCredentialOptions
deserializeFromBytes(byte[] serializedBytes)
De-serializes the MakeCredentialOptions from bytes, reversing serializeToBytes().
boolean
AuthenticatorSelectionCriteria
byte[]
List<PublicKeyCredentialDescriptor>
List<PublicKeyCredentialParameters>
Integer
PublicKeyCredentialEntity
Double
TokenBindingIdValue
PublicKeyCredentialUserEntity
int
byte[]
serializeToBytes()
Serializes the MakeCredentialOptions to bytes.
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Public Constructors

public MakeCredentialOptions (PublicKeyCredentialEntity rp, PublicKeyCredentialUserEntity user, byte[] challenge, List<PublicKeyCredentialParameters> parameters, Double timeoutSeconds, List<PublicKeyCredentialDescriptor> excludeList, AuthenticatorSelectionCriteria authenticatorSelection, Integer requestId, TokenBindingIdValue tokenBindingIdValue, AuthenticationExtensions authenticationExtensions)

Public Methods

public static MakeCredentialOptions deserializeFromBytes (byte[] serializedBytes)

De-serializes the MakeCredentialOptions from bytes, reversing serializeToBytes(). See go/gmscore-perf/reflectedparcelable for why we can't rely on Parcelable behaviour.

Parameters
serializedBytes The serialized bytes.
Returns
  • The deserialized MakeCredentialOptions.

public boolean equals (Object obj)

public AuthenticatorSelectionCriteria getAuthenticatorSelection ()

public byte[] getChallenge ()

public List<PublicKeyCredentialDescriptor> getExcludeList ()

public List<PublicKeyCredentialParameters> getParameters ()

public Integer getRequestId ()

public Double getTimeoutSeconds ()

public TokenBindingIdValue getTokenBindingIdValue ()

public int hashCode ()

public byte[] serializeToBytes ()

Serializes the MakeCredentialOptions to bytes. Use deserializeFromBytes(byte[]) to deserialize. See go/gmscore-perf/reflectedparcelable for why we can't rely on Parcelable behaviour.

Returns
  • the serialized byte array.

public void writeToParcel (Parcel dest, int flags)