public final class NotificationUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NotificationUtils.CloudType |
Modifier and Type | Field and Description |
---|---|
static int |
MAX_REGISTRATION_RETRY_COUNT |
static int |
MAX_REGISTRATION_RETRY_DELAY_S |
static int |
MAX_TOKEN_FETCH_RETRY_COUNT |
static int |
REGISTRATION_RENEW_IN_ADVANCE_S |
Constructor and Description |
---|
NotificationUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
decryptPushNotificationPayload(byte[] iv,
byte[] cipherText,
javax.crypto.SecretKey cryptoKey) |
static byte[] |
extractCipherText(byte[] result) |
static byte[] |
extractEncryptionKey(byte[] result) |
static byte[] |
extractHmac(byte[] result) |
static byte[] |
extractInitializationVector(byte[] result) |
static org.threeten.bp.OffsetDateTime |
extractReadTimeFromConsumptionHorizon(java.lang.String consumptionHorizon) |
static ChatEventType |
getChatEventTypeByEventId(int eventId) |
static int |
getCipherTextSize(byte[] result) |
static com.azure.android.communication.common.CommunicationIdentifier |
getCommunicationIdentifier(java.lang.String rawId) |
static NotificationUtils.CloudType |
getUserCloudTypeFromSkypeToken(java.lang.String skypeToken) |
static boolean |
isValidEventId(int eventId) |
static java.util.Map<java.lang.String,java.lang.String> |
parseChatMessageMetadata(java.lang.String rawMetadata) |
static ChatMessageType |
parseChatMessageType(java.lang.String rawType) |
static org.threeten.bp.OffsetDateTime |
parseEpochTime(java.lang.Long epochMilli) |
static ChatEvent |
parseTrouterNotificationPayload(ChatEventType chatEventType,
java.lang.String body) |
static ChatEvent |
toEventPayload(ChatEventType chatEventType,
java.lang.String body) |
static boolean |
verifyEncryptedPayload(byte[] encryptionKey,
byte[] iv,
byte[] cipherText,
byte[] hmac,
javax.crypto.SecretKey authKey) |
public static final int MAX_TOKEN_FETCH_RETRY_COUNT
public static final int MAX_REGISTRATION_RETRY_COUNT
public static final int MAX_REGISTRATION_RETRY_DELAY_S
public static final int REGISTRATION_RENEW_IN_ADVANCE_S
public static ChatEvent parseTrouterNotificationPayload(ChatEventType chatEventType, java.lang.String body)
public static ChatEvent toEventPayload(ChatEventType chatEventType, java.lang.String body)
public static com.azure.android.communication.common.CommunicationIdentifier getCommunicationIdentifier(java.lang.String rawId)
public static boolean isValidEventId(int eventId)
public static ChatEventType getChatEventTypeByEventId(int eventId)
public static org.threeten.bp.OffsetDateTime extractReadTimeFromConsumptionHorizon(java.lang.String consumptionHorizon)
public static ChatMessageType parseChatMessageType(java.lang.String rawType)
public static java.util.Map<java.lang.String,java.lang.String> parseChatMessageMetadata(java.lang.String rawMetadata)
public static org.threeten.bp.OffsetDateTime parseEpochTime(java.lang.Long epochMilli)
public static NotificationUtils.CloudType getUserCloudTypeFromSkypeToken(java.lang.String skypeToken)
public static boolean verifyEncryptedPayload(byte[] encryptionKey, byte[] iv, byte[] cipherText, byte[] hmac, javax.crypto.SecretKey authKey) throws java.lang.Throwable
java.lang.Throwable
public static java.lang.String decryptPushNotificationPayload(byte[] iv, byte[] cipherText, javax.crypto.SecretKey cryptoKey) throws java.lang.Throwable
java.lang.Throwable
public static byte[] extractEncryptionKey(byte[] result)
public static byte[] extractInitializationVector(byte[] result)
public static byte[] extractCipherText(byte[] result)
public static byte[] extractHmac(byte[] result)
public static int getCipherTextSize(byte[] result)