public static final class

SignRequestParams.Builder

extends Object
java.lang.Object
   ↳ com.google.android.gms.fido.u2f.api.common.SignRequestParams.Builder

Class Overview

Builds SignRequestParams.

Summary

Public Constructors
SignRequestParams.Builder()
Creates an empty builder.
Public Methods
SignRequestParams build()
SignRequestParams.Builder setAppId(Uri appId)
Sets sign request appId.
SignRequestParams.Builder setChannelIdValue(ChannelIdValue channelIdValue)
Sets channelId value for the sign request.
SignRequestParams.Builder setDefaultSignChallenge(byte[] defaultSignChallenge)
Sets default sign challenge for the sign request.
SignRequestParams.Builder setDisplayHint(String displayHint)
Sets the display hint that is shown to the user.
SignRequestParams.Builder setRegisteredKeys(List<RegisteredKey> registeredKeys)
Sets registered keys for the sign request.
SignRequestParams.Builder setRequestId(Integer requestId)
Sets the request id in order to link together events into a single session (the span of events between the time that the server initiates a single U2F request to the client and receives a reply) on a single device.
SignRequestParams.Builder setTimeoutSeconds(Double timeoutSeconds)
Sets timeout in seconds, to indicate for how long this request remains valid.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SignRequestParams.Builder ()

Creates an empty builder.

Public Methods

public SignRequestParams build ()

public SignRequestParams.Builder setAppId (Uri appId)

Sets sign request appId. This field is optional.

Parameters
appId Uri
Returns
SignRequestParams.Builder

public SignRequestParams.Builder setChannelIdValue (ChannelIdValue channelIdValue)

Sets channelId value for the sign request. This field is optional.

Parameters
channelIdValue ChannelIdValue
Returns
SignRequestParams.Builder

public SignRequestParams.Builder setDefaultSignChallenge (byte[] defaultSignChallenge)

Sets default sign challenge for the sign request. This field is optional.

Parameters
defaultSignChallenge byte
Returns
SignRequestParams.Builder

public SignRequestParams.Builder setDisplayHint (String displayHint)

Sets the display hint that is shown to the user. Note that if not null, the string should not be longer than MAX_DISPLAY_HINT_LENGTH characters. This field is optional.

Parameters
displayHint String
Returns
SignRequestParams.Builder

public SignRequestParams.Builder setRegisteredKeys (List<RegisteredKey> registeredKeys)

Sets registered keys for the sign request. This field is mandatory.

Parameters
registeredKeys List
Returns
SignRequestParams.Builder

public SignRequestParams.Builder setRequestId (Integer requestId)

Sets the request id in order to link together events into a single session (the span of events between the time that the server initiates a single U2F request to the client and receives a reply) on a single device. This field is optional.

Parameters
requestId Integer
Returns
SignRequestParams.Builder

public SignRequestParams.Builder setTimeoutSeconds (Double timeoutSeconds)

Sets timeout in seconds, to indicate for how long this request remains valid. This field is optional.

Parameters
timeoutSeconds Double
Returns
SignRequestParams.Builder