Class GoogleFirebaseCloudMessagingProperties
java.lang.Object
org.apereo.cas.configuration.model.support.firebase.GoogleFirebaseCloudMessagingProperties
- All Implemented Interfaces:
Serializable
@RequiresModule(name="cas-server-support-notifications-fcm")
public class GoogleFirebaseCloudMessagingProperties
extends Object
implements Serializable
- Since:
- 6.3.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFirebase database url.The principal attribute name that contains the registration token for the user.Required scopes to properly communicate with the firebase cloud.Path to the service account key json file.setDatabaseUrl
(String databaseUrl) Firebase database url.setRegistrationTokenAttributeName
(String registrationTokenAttributeName) The principal attribute name that contains the registration token for the user.Required scopes to properly communicate with the firebase cloud.setServiceAccountKey
(SpringResourceProperties serviceAccountKey) Path to the service account key json file.
-
Constructor Details
-
GoogleFirebaseCloudMessagingProperties
public GoogleFirebaseCloudMessagingProperties()
-
-
Method Details
-
getRegistrationTokenAttributeName
The principal attribute name that contains the registration token for the user. Registration tokens that are provided by clients during the handshake process should be stored on the server, and made available to CAS as a principal attribute. -
getServiceAccountKey
Path to the service account key json file. This can optional if you set the environment variableGOOGLE_APPLICATION_CREDENTIALS
to the file path of the JSON file that contains your service account key. If this is undefined, the property value will be used instead. -
getDatabaseUrl
Firebase database url. -
getScopes
Required scopes to properly communicate with the firebase cloud. -
setRegistrationTokenAttributeName
public GoogleFirebaseCloudMessagingProperties setRegistrationTokenAttributeName(String registrationTokenAttributeName) The principal attribute name that contains the registration token for the user. Registration tokens that are provided by clients during the handshake process should be stored on the server, and made available to CAS as a principal attribute.- Returns:
this
.
-
setServiceAccountKey
public GoogleFirebaseCloudMessagingProperties setServiceAccountKey(SpringResourceProperties serviceAccountKey) Path to the service account key json file. This can optional if you set the environment variableGOOGLE_APPLICATION_CREDENTIALS
to the file path of the JSON file that contains your service account key. If this is undefined, the property value will be used instead.- Returns:
this
.
-
setDatabaseUrl
Firebase database url.- Returns:
this
.
-
setScopes
Required scopes to properly communicate with the firebase cloud.- Returns:
this
.
-