All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.identitytoolkit.v2.model.GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse Maven / Gradle / Ivy

/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.identitytoolkit.v2.model;

/**
 * Authenticator response to authenticate the user with an existing FIDO key.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Identity Toolkit API. For a detailed explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse extends com.google.api.client.json.GenericJson { /** * Authentication assertion from the authenticator. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse authenticatorAssertionResponse; /** * Identifier for the authentication credential. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String credentialId; /** * The type of public key. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String credentialType; /** * Authentication assertion from the authenticator. * @return value or {@code null} for none */ public GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse getAuthenticatorAssertionResponse() { return authenticatorAssertionResponse; } /** * Authentication assertion from the authenticator. * @param authenticatorAssertionResponse authenticatorAssertionResponse or {@code null} for none */ public GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse setAuthenticatorAssertionResponse(GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse authenticatorAssertionResponse) { this.authenticatorAssertionResponse = authenticatorAssertionResponse; return this; } /** * Identifier for the authentication credential. * @see #decodeCredentialId() * @return value or {@code null} for none */ public java.lang.String getCredentialId() { return credentialId; } /** * Identifier for the authentication credential. * @see #getCredentialId() * @return Base64 decoded value or {@code null} for none * * @since 1.14 */ public byte[] decodeCredentialId() { return com.google.api.client.util.Base64.decodeBase64(credentialId); } /** * Identifier for the authentication credential. * @see #encodeCredentialId() * @param credentialId credentialId or {@code null} for none */ public GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse setCredentialId(java.lang.String credentialId) { this.credentialId = credentialId; return this; } /** * Identifier for the authentication credential. * @see #setCredentialId() * *

* The value is encoded Base64 or {@code null} for none. *

* * @since 1.14 */ public GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse encodeCredentialId(byte[] credentialId) { this.credentialId = com.google.api.client.util.Base64.encodeBase64URLSafeString(credentialId); return this; } /** * The type of public key. * @return value or {@code null} for none */ public java.lang.String getCredentialType() { return credentialType; } /** * The type of public key. * @param credentialType credentialType or {@code null} for none */ public GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse setCredentialType(java.lang.String credentialType) { this.credentialType = credentialType; return this; } @Override public GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse set(String fieldName, Object value) { return (GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse) super.set(fieldName, value); } @Override public GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse clone() { return (GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy