You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: server/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,13 @@
1
-
Server SafetyNet Samples
1
+
2
+
SafetyNet Samples
2
3
===================================
3
4
4
5
This sample demonstrates how to verify the response received from the SafetyNet service.
5
6
6
7
It shows how to extract the compatibility check response from the JWS message, validate its SSL certificate chain, hostname and signature.
7
8
8
9
This check can be done completely offline (See `OfflineVerify.java`) or by using the _Android Verification API_ to verify the content and signature of the response (see `OnlineVerify`). This REST API requires you to register at the Google Developers console and register for an API key. Detailed steps are available [in the documentation] under _Validating the response with Google APIs_.
9
-
10
+
Note: The API is rate-limited. For the reason, you should use the API only for testing during the initial development stage. You shouldn't use this verification API in a production scenario.
10
11
11
12
Note that this sample only provides a basic overview over the verification process and does not cover all possibilities. For example,it is reccomended to always verify the nonce in the request as well. This sample also does not show the app-to-server communication.
12
13
@@ -52,7 +53,6 @@ Runing the Samples
52
53
* Retrieve a signed statement from the Android app and copy it to your machine. (You can use the "Share Result" option.)
53
54
* Build this server component and provide the signed statement as input.
54
55
55
-
56
56
Support
57
57
-------
58
58
@@ -83,4 +83,4 @@ License for the specific language governing permissions and limitations under
83
83
the License.
84
84
85
85
[key]: https://developer.android.com/training/safetynet/index.html#verify-compat-check"See Validating the response with Google APIs"
0 commit comments