
com.google.api.services.identitytoolkit.model.Userinfo Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* 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://code.google.com/p/google-apis-client-generator/
* (build: 2013-06-26 16:27:34 UTC)
* on 2013-07-24 at 21:41:37 UTC
* Modify at your own risk.
*/
package com.google.api.services.identitytoolkit.model;
/**
* Template for an individual account info.
*
* 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 Google Identity Toolkit API. For a detailed
* explanation see:
* http://code.google.com/p/google-api-java-client/wiki/Json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class Userinfo extends com.google.api.client.json.GenericJson {
/**
* email
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String email;
/**
* Identifies this object as a user info.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;
/**
* user's id at the site
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String localId;
/**
* password
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String password;
/**
* salt
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String salt;
/**
* email
* @return value or {@code null} for none
*/
public java.lang.String getEmail() {
return email;
}
/**
* email
* @param email email or {@code null} for none
*/
public Userinfo setEmail(java.lang.String email) {
this.email = email;
return this;
}
/**
* Identifies this object as a user info.
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}
/**
* Identifies this object as a user info.
* @param kind kind or {@code null} for none
*/
public Userinfo setKind(java.lang.String kind) {
this.kind = kind;
return this;
}
/**
* user's id at the site
* @return value or {@code null} for none
*/
public java.lang.String getLocalId() {
return localId;
}
/**
* user's id at the site
* @param localId localId or {@code null} for none
*/
public Userinfo setLocalId(java.lang.String localId) {
this.localId = localId;
return this;
}
/**
* password
* @see #decodePassword()
* @return value or {@code null} for none
*/
public java.lang.String getPassword() {
return password;
}
/**
* password
* @see #getPassword()
* @return Base64 decoded value or {@code null} for none
*
* @since 1.14
*/
public byte[] decodePassword() {
return com.google.api.client.util.Base64.decodeBase64(password);
}
/**
* password
* @see #encodePassword()
* @param password password or {@code null} for none
*/
public Userinfo setPassword(java.lang.String password) {
this.password = password;
return this;
}
/**
* password
* @see #setPassword()
*
*
* The value is encoded Base64 or {@code null} for none.
*
*
* @since 1.14
*/
public Userinfo encodePassword(byte[] password) {
this.password = com.google.api.client.util.Base64.encodeBase64URLSafeString(password);
return this;
}
/**
* salt
* @see #decodeSalt()
* @return value or {@code null} for none
*/
public java.lang.String getSalt() {
return salt;
}
/**
* salt
* @see #getSalt()
* @return Base64 decoded value or {@code null} for none
*
* @since 1.14
*/
public byte[] decodeSalt() {
return com.google.api.client.util.Base64.decodeBase64(salt);
}
/**
* salt
* @see #encodeSalt()
* @param salt salt or {@code null} for none
*/
public Userinfo setSalt(java.lang.String salt) {
this.salt = salt;
return this;
}
/**
* salt
* @see #setSalt()
*
*
* The value is encoded Base64 or {@code null} for none.
*
*
* @since 1.14
*/
public Userinfo encodeSalt(byte[] salt) {
this.salt = com.google.api.client.util.Base64.encodeBase64URLSafeString(salt);
return this;
}
@Override
public Userinfo set(String fieldName, Object value) {
return (Userinfo) super.set(fieldName, value);
}
@Override
public Userinfo clone() {
return (Userinfo) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy