Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/identitytoolkit_v2/classes.rb,
lib/google/apis/identitytoolkit_v2/representations.rb,
lib/google/apis/identitytoolkit_v2/representations.rb

Overview

Parameters for creating a FIDO key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions

Returns a new instance of GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions.



2758
2759
2760
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2758

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#authenticator_selectionGoogle::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorSelectionCriteria

Criteria for the authenticator to create a registered FIDO key. Corresponds to the JSON property authenticatorSelection



2730
2731
2732
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2730

def authenticator_selection
  @authenticator_selection
end

#challengeString

The FIDO challenge. Corresponds to the JSON property challenge NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2736
2737
2738
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2736

def challenge
  @challenge
end

#exclude_credentialsArray<Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PublicKeyCredentialDescriptor>

Credentials already mapped to this user. Corresponds to the JSON property excludeCredentials



2741
2742
2743
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2741

def exclude_credentials
  @exclude_credentials
end

#pub_key_cred_paramsArray<Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PublicKeyCredentialParameters>

Lists the supported key types and signature algorithms. Corresponds to the JSON property pubKeyCredParams



2746
2747
2748
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2746

def pub_key_cred_params
  @pub_key_cred_params
end

#rpGoogle::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RpEntity

The entity object for the Relying Party. Corresponds to the JSON property rp



2751
2752
2753
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2751

def rp
  @rp
end

#userGoogle::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2UserEntity

The entity object for the user. Corresponds to the JSON property user



2756
2757
2758
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2756

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2763
2764
2765
2766
2767
2768
2769
2770
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2763

def update!(**args)
  @authenticator_selection = args[:authenticator_selection] if args.key?(:authenticator_selection)
  @challenge = args[:challenge] if args.key?(:challenge)
  @exclude_credentials = args[:exclude_credentials] if args.key?(:exclude_credentials)
  @pub_key_cred_params = args[:pub_key_cred_params] if args.key?(:pub_key_cred_params)
  @rp = args[:rp] if args.key?(:rp)
  @user = args[:user] if args.key?(:user)
end