-
public interface MessageEncryptionImplementations of this interface provide the functionality of Message Encryption for Web Push.
Usually, an instance of this interface is obtained by using a factory method of
MessageEncryptions.Thread Safety:Depends on implementations. Typically, an implementation of this interface is not thread-safe. See
MessageEncryptions.- Author:
- Tomoki Sato
- See Also:
MessageEncryptions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EncryptedPushMessageencrypt(UserAgentMessageEncryptionKeyInfo userAgentMessageEncryptionKeyInfo, PushMessage pushMessage)Encrypts the givenpushMessagewith the givenuserAgentMessageEncryptionKeyInfo.
-
-
-
Method Detail
-
encrypt
EncryptedPushMessage encrypt(UserAgentMessageEncryptionKeyInfo userAgentMessageEncryptionKeyInfo, PushMessage pushMessage)
Encrypts the givenpushMessagewith the givenuserAgentMessageEncryptionKeyInfo.- Parameters:
userAgentMessageEncryptionKeyInfo- user agent side keys for encryption.pushMessage- a push message to be encrypted- Returns:
- the encrypted push message.
-
-