Verified Commit 3c1cb13e authored by Marvin W.'s avatar Marvin W. 🐿
Browse files

Credentials: Fix copyright headers

parent a37b14ed
/* /*
* Copyright (C) 2013-2017 microG Project Team * SPDX-FileCopyrightText: 2016, microG Project Team
* * SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License"); * Notice: Portions of this file are reproduced from work created and shared by Google and used
* you may not use this file except in compliance with the License. * according to terms described in the Creative Commons 4.0 Attribution License.
* You may obtain a copy of the License at * See https://developers.google.com/readme/policies for details.
*
* 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.
*/ */
package com.google.android.gms.auth.api.credentials; package com.google.android.gms.auth.api.credentials;
...@@ -30,28 +22,22 @@ import java.util.Locale; ...@@ -30,28 +22,22 @@ import java.util.Locale;
@PublicApi @PublicApi
public class Credential extends AutoSafeParcelable { public class Credential extends AutoSafeParcelable {
@SafeParceled(1000) @Field(1000)
private int versionCode = 1; private int versionCode = 1;
@SafeParceled(1) @Field(1)
private String id; private String id;
@Field(2)
@SafeParceled(2)
private String name; private String name;
@Field(3)
@SafeParceled(3)
private Uri profilePictureUri; private Uri profilePictureUri;
@Field(value = 4, subClass = IdToken.class)
@SafeParceled(value = 4, subClass = IdToken.class)
private List<IdToken> tokens; private List<IdToken> tokens;
@Field(5)
@SafeParceled(5)
private String password; private String password;
@Field(6)
@SafeParceled(6)
private String accountType; private String accountType;
@Field(7)
@SafeParceled(7)
private String generatedPassword; private String generatedPassword;
private Credential() { private Credential() {
......
/* /*
* Copyright (C) 2013-2017 microG Project Team * SPDX-FileCopyrightText: 2016, microG Project Team
* * SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License"); * Notice: Portions of this file are reproduced from work created and shared by Google and used
* you may not use this file except in compliance with the License. * according to terms described in the Creative Commons 4.0 Attribution License.
* You may obtain a copy of the License at * See https://developers.google.com/readme/policies for details.
*
* 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.
*/ */
package com.google.android.gms.auth.api.credentials; package com.google.android.gms.auth.api.credentials;
......
/* /*
* Copyright (C) 2013-2017 microG Project Team * SPDX-FileCopyrightText: 2016, microG Project Team
* * SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License"); * Notice: Portions of this file are reproduced from work created and shared by Google and used
* you may not use this file except in compliance with the License. * according to terms described in the Creative Commons 4.0 Attribution License.
* You may obtain a copy of the License at * See https://developers.google.com/readme/policies for details.
*
* 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.
*/ */
package com.google.android.gms.auth.api.credentials; package com.google.android.gms.auth.api.credentials;
......
/* /*
* SPDX-FileCopyrightText: 2021, microG Project Team * SPDX-FileCopyrightText: 2021, microG Project Team
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* Notice: Portions of this file are reproduced from work created and shared by Google and used
* according to terms described in the Creative Commons 4.0 Attribution License.
* See https://developers.google.com/readme/policies for details.
*/ */
package com.google.android.gms.auth.api.credentials; package com.google.android.gms.auth.api.credentials;
......
/* /*
* Copyright (C) 2013-2017 microG Project Team * SPDX-FileCopyrightText: 2016, microG Project Team
* * SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License"); * Notice: Portions of this file are reproduced from work created and shared by Google and used
* you may not use this file except in compliance with the License. * according to terms described in the Creative Commons 4.0 Attribution License.
* You may obtain a copy of the License at * See https://developers.google.com/readme/policies for details.
*
* 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.
*/ */
package com.google.android.gms.auth.api.credentials; package com.google.android.gms.auth.api.credentials;
...@@ -23,13 +15,13 @@ import org.microg.safeparcel.SafeParceled; ...@@ -23,13 +15,13 @@ import org.microg.safeparcel.SafeParceled;
@PublicApi @PublicApi
public class IdToken extends AutoSafeParcelable { public class IdToken extends AutoSafeParcelable {
@SafeParceled(1000) @Field(1000)
private int versionCode = 1; private int versionCode = 1;
@SafeParceled(1) @Field(1)
private String accountType; private String accountType;
@SafeParceled(2) @Field(2)
private String id; private String id;
private IdToken() { private IdToken() {
......
/* /*
* SPDX-FileCopyrightText: 2021, microG Project Team * SPDX-FileCopyrightText: 2021, microG Project Team
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* Notice: Portions of this file are reproduced from work created and shared by Google and used
* according to terms described in the Creative Commons 4.0 Attribution License.
* See https://developers.google.com/readme/policies for details.
*/ */
package com.google.android.gms.auth.api.credentials; package com.google.android.gms.auth.api.credentials;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment