1 /* Copyright 2018 Google LLC 2 * 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * https://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 package com.google.security.cryptauth.lib.securegcm; 16 17 /** 18 * A container for GCM related constants used by SecureGcm channels. 19 */ 20 public final class SecureGcmConstants { SecureGcmConstants()21 private SecureGcmConstants() {} // Do not instantiate 22 23 public static final int SECURE_GCM_VERSION = 1; 24 25 /** 26 * The GCM sender identity used by this library (GMSCore). 27 */ 28 public static final String SENDER_ID = "745476177629"; 29 30 /** 31 * The key used for indexing the GCM {@link TransportCryptoOps.Payload} within {@code AppData}. 32 */ 33 public static final String MESSAGE_KEY = "P"; 34 35 /** 36 * The origin that should be use for GCM device enrollments. 37 */ 38 public static final String GOOGLE_ORIGIN = "google.com"; 39 40 /** 41 * The origin that should be use for GCM Legacy android device enrollments. 42 */ 43 public static final String LEGACY_ANDROID_ORIGIN = "c.g.a.gms"; 44 45 /** 46 * The name of the protocol this library speaks. 47 */ 48 public static final String PROTOCOL_TYPE_NAME = "gcmV1"; 49 } 50