-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SPDX header to lib implementation
Signed-off-by: Andy Scherzinger <[email protected]>
- Loading branch information
1 parent
3ab3e58
commit 9a327d8
Showing
12 changed files
with
80 additions
and
143 deletions.
There are no files selected for viewing
22 changes: 6 additions & 16 deletions
22
lib/src/main/java/com/nextcloud/android/sso/AccountImporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,12 @@ | ||
/* | ||
* Nextcloud SingleSignOn | ||
* Nextcloud Android SingleSignOn Library | ||
* | ||
* @author David Luhmer | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-FileCopyrightText: 2021-2023 Stefan Niedermann <[email protected]> | ||
* SPDX-FileCopyrightText: 2018-2019 Tobias Kaminsky <[email protected]> | ||
* SPDX-FileCopyrightText: 2017-2019 David Luhmer <[email protected]> | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
|
||
package com.nextcloud.android.sso; | ||
|
||
import static android.app.Activity.RESULT_CANCELED; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,10 @@ | ||
/* | ||
* Nextcloud SingleSignOn | ||
* Nextcloud Android SingleSignOn Library | ||
* | ||
* @author David Luhmer | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-FileCopyrightText: 2018 David Luhmer <[email protected]> | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
|
||
package com.nextcloud.android.sso; | ||
|
||
public class Constants { | ||
|
@@ -37,5 +25,4 @@ public class Constants { | |
public static final String EXCEPTION_INVALID_REQUEST_URL = "CE_4"; | ||
public static final String EXCEPTION_HTTP_REQUEST_FAILED = "CE_5"; | ||
public static final String EXCEPTION_ACCOUNT_ACCESS_DECLINED = "CE_6"; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
/* | ||
* Nextcloud Android SingleSignOn Library | ||
* | ||
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-FileCopyrightText: 2021 Tobias Kaminsky <[email protected]> | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
package com.nextcloud.android.sso; | ||
|
||
import java.io.Serializable; | ||
|
||
import androidx.annotation.Nullable; | ||
|
||
|
||
public class QueryParam implements Serializable { | ||
|
||
private static final long serialVersionUID = 21523240203234211L; //assign a long value | ||
|
24 changes: 6 additions & 18 deletions
24
lib/src/main/java/com/nextcloud/android/sso/aidl/IThreadListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
package com.nextcloud.android.sso.aidl; | ||
|
||
/** | ||
* Nextcloud SingleSignOn | ||
* | ||
* @author David Luhmer | ||
/* | ||
* Nextcloud Android SingleSignOn Library | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-FileCopyrightText: 2017-2018 David Luhmer <[email protected]> | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
package com.nextcloud.android.sso.aidl; | ||
|
||
public interface IThreadListener { | ||
void onThreadFinished(final Thread thread); | ||
|
25 changes: 8 additions & 17 deletions
25
lib/src/main/java/com/nextcloud/android/sso/aidl/NextcloudRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,16 @@ | ||
/* | ||
* Nextcloud SingleSignOn | ||
* Nextcloud Android SingleSignOn Library | ||
* | ||
* @author David Luhmer | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-FileCopyrightText: 2019-2021 Desperate Coder <[email protected]> | ||
* SPDX-FileCopyrightText: 2021 Stefan Niedermann <[email protected]> | ||
* SPDX-FileCopyrightText: 2019 Tobias Kaminsky <[email protected]> | ||
* SPDX-FileCopyrightText: 2019 Unpublished <[email protected]> | ||
* SPDX-FileCopyrightText: 2017-2019 David Luhmer <[email protected]> | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
|
||
package com.nextcloud.android.sso.aidl; | ||
|
||
|
||
import androidx.core.util.ObjectsCompat; | ||
import androidx.core.util.Pair; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
/* | ||
* Nextcloud Android SingleSignOn Library | ||
* | ||
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-FileCopyrightText: 2017-2019 David Luhmer <[email protected]> | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
package com.nextcloud.android.sso.aidl; | ||
|
||
import android.os.ParcelFileDescriptor; | ||
|
@@ -7,25 +14,6 @@ | |
import java.io.InputStream; | ||
import java.io.OutputStream; | ||
|
||
/** | ||
* Nextcloud SingleSignOn | ||
* | ||
* @author David Luhmer | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
public class ParcelFileDescriptorUtil { | ||
|
||
private ParcelFileDescriptorUtil() { } | ||
|
20 changes: 4 additions & 16 deletions
20
lib/src/main/java/com/nextcloud/android/sso/model/FilesAppType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,10 @@ | ||
/* | ||
* Nextcloud SingleSignOn | ||
* Nextcloud Android SingleSignOn Library | ||
* | ||
* @author Stefan Niedermann | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-FileCopyrightText: 2021 Stefan Niedermann <[email protected]> | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
|
||
package com.nextcloud.android.sso.model; | ||
|
||
import androidx.annotation.NonNull; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
/* | ||
* Nextcloud Android SingleSignOn Library | ||
* | ||
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-FileCopyrightText: 2021 Stefan Niedermann <[email protected]> | ||
* SPDX-FileCopyrightText: 2019 Tobias Kaminsky <[email protected]> | ||
* SPDX-FileCopyrightText: 2017-2019 David Luhmer <[email protected]> | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
package com.nextcloud.android.sso.model; | ||
|
||
import android.util.Base64; | ||
|
@@ -9,26 +18,6 @@ | |
import java.io.ObjectOutputStream; | ||
import java.io.Serializable; | ||
|
||
/** | ||
* Nextcloud SingleSignOn | ||
* | ||
* @author David Luhmer | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
public class SingleSignOnAccount implements Serializable { | ||
|
||
private static final long serialVersionUID = 21523240203234240L; //assign a long value | ||
|
7 changes: 7 additions & 0 deletions
7
lib/src/main/java/com/nextcloud/android/sso/model/ocs/OcsCapabilitiesResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
/* | ||
* Nextcloud Android SingleSignOn Library | ||
* | ||
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-FileCopyrightText: 2021 Stefan Niedermann <[email protected]> | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
package com.nextcloud.android.sso.model.ocs; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
7 changes: 7 additions & 0 deletions
7
lib/src/main/java/com/nextcloud/android/sso/model/ocs/OcsResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
/* | ||
* Nextcloud Android SingleSignOn Library | ||
* | ||
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-FileCopyrightText: 2021 Stefan Niedermann <[email protected]> | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
package com.nextcloud.android.sso.model.ocs; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
7 changes: 7 additions & 0 deletions
7
lib/src/main/java/com/nextcloud/android/sso/model/ocs/OcsUser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
/* | ||
* Nextcloud Android SingleSignOn Library | ||
* | ||
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-FileCopyrightText: 2021 Stefan Niedermann <[email protected]> | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
package com.nextcloud.android.sso.model.ocs; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
/* | ||
* Nextcloud Android SingleSignOn Library | ||
* | ||
* SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-FileCopyrightText: 2023 Stefan Niedermann <[email protected]> | ||
* SPDX-FileCopyrightText: 2018-2019 David Luhmer <[email protected]> | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
package com.nextcloud.android.sso.ui; | ||
|
||
import android.app.NotificationChannel; | ||
|
@@ -14,25 +22,6 @@ | |
import com.nextcloud.android.sso.R; | ||
import com.nextcloud.android.sso.exceptions.SSOException; | ||
|
||
/** | ||
* Nextcloud SingleSignOn | ||
* | ||
* @author David Luhmer | ||
* <p> | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* <p> | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* <p> | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
public final class UiExceptionManager { | ||
|
||
private static final int NOTIFICATION_ID = 0; | ||
|