Class TdApi.DeviceTokenWebPush

  • Enclosing class:
    TdApi

    public static class TdApi.DeviceTokenWebPush
    extends TdApi.DeviceToken
    A token for web Push API.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String authBase64url
      Base64url-encoded authentication secret.
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      java.lang.String endpoint
      Absolute URL exposed by the push service where the application server can send push messages, may be empty to de-register a device.
      java.lang.String p256dhBase64url
      Base64url-encoded P-256 elliptic curve Diffie-Hellman public key.
    • Constructor Summary

      Constructors 
      Constructor Description
      DeviceTokenWebPush()
      Default constructor.
      DeviceTokenWebPush​(java.lang.String endpoint, java.lang.String p256dhBase64url, java.lang.String authBase64url)
      Constructor for initialization of all fields.
    • Field Detail

      • endpoint

        public java.lang.String endpoint
        Absolute URL exposed by the push service where the application server can send push messages, may be empty to de-register a device.
      • p256dhBase64url

        public java.lang.String p256dhBase64url
        Base64url-encoded P-256 elliptic curve Diffie-Hellman public key.
      • authBase64url

        public java.lang.String authBase64url
        Base64url-encoded authentication secret.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DeviceTokenWebPush

        public DeviceTokenWebPush()
        Default constructor.
      • DeviceTokenWebPush

        public DeviceTokenWebPush​(java.lang.String endpoint,
                                  java.lang.String p256dhBase64url,
                                  java.lang.String authBase64url)
        Constructor for initialization of all fields.
        Parameters:
        endpoint - Absolute URL exposed by the push service where the application server can send push messages, may be empty to de-register a device.
        p256dhBase64url - Base64url-encoded P-256 elliptic curve Diffie-Hellman public key.
        authBase64url - Base64url-encoded authentication secret.