BrowserCredential Class

  • java.lang.Object
    • com.azure.resourcemanager.notificationhubs.models.BrowserCredential

public final class BrowserCredential

Description of a NotificationHub BrowserCredential.

Constructor Summary

Constructor Description
BrowserCredential()

Creates an instance of BrowserCredential class.

Method Summary

Modifier and Type Method and Description
String subject()

Get the subject property: Gets or sets web push subject.

void validate()

Validates the instance.

String vapidPrivateKey()

Get the vapidPrivateKey property: Gets or sets VAPID private key.

String vapidPublicKey()

Get the vapidPublicKey property: Gets or sets VAPID public key.

BrowserCredential withSubject(String subject)

Set the subject property: Gets or sets web push subject.

BrowserCredential withVapidPrivateKey(String vapidPrivateKey)

Set the vapidPrivateKey property: Gets or sets VAPID private key.

BrowserCredential withVapidPublicKey(String vapidPublicKey)

Set the vapidPublicKey property: Gets or sets VAPID public key.

Methods inherited from java.lang.Object

Constructor Details

BrowserCredential

public BrowserCredential()

Creates an instance of BrowserCredential class.

Method Details

subject

public String subject()

Get the subject property: Gets or sets web push subject.

Returns:

the subject value.

validate

public void validate()

Validates the instance.

vapidPrivateKey

public String vapidPrivateKey()

Get the vapidPrivateKey property: Gets or sets VAPID private key.

Returns:

the vapidPrivateKey value.

vapidPublicKey

public String vapidPublicKey()

Get the vapidPublicKey property: Gets or sets VAPID public key.

Returns:

the vapidPublicKey value.

withSubject

public BrowserCredential withSubject(String subject)

Set the subject property: Gets or sets web push subject.

Parameters:

subject - the subject value to set.

Returns:

the BrowserCredential object itself.

withVapidPrivateKey

public BrowserCredential withVapidPrivateKey(String vapidPrivateKey)

Set the vapidPrivateKey property: Gets or sets VAPID private key.

Parameters:

vapidPrivateKey - the vapidPrivateKey value to set.

Returns:

the BrowserCredential object itself.

withVapidPublicKey

public BrowserCredential withVapidPublicKey(String vapidPublicKey)

Set the vapidPublicKey property: Gets or sets VAPID public key.

Parameters:

vapidPublicKey - the vapidPublicKey value to set.

Returns:

the BrowserCredential object itself.

Applies to