You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/06/15 06:05:28 UTC
[pulsar-site] branch main updated: Docs sync done from apache/pulsar(#71b0dd7)
This is an automated email from the ASF dual-hosted git repository.
urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new 15bf76db44c Docs sync done from apache/pulsar(#71b0dd7)
15bf76db44c is described below
commit 15bf76db44cb1c35938bd76884bddf2b2e191fe1
Author: Pulsar Site Updater <de...@pulsar.apache.org>
AuthorDate: Wed Jun 15 06:05:23 2022 +0000
Docs sync done from apache/pulsar(#71b0dd7)
---
site2/website-next/docs/client-libraries-java.md | 2 +-
site2/website-next/docs/concepts-messaging.md | 2 +-
site2/website-next/docs/security-oauth2.md | 16 +++++++++++-----
.../version-2.1.1-incubating/client-libraries-java.md | 2 +-
.../version-2.10.0/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.10.0/security-oauth2.md | 16 +++++++++++-----
.../version-2.2.0/client-libraries-java.md | 2 +-
.../version-2.3.0/client-libraries-java.md | 2 +-
.../version-2.3.2/client-libraries-java.md | 2 +-
.../version-2.4.0/client-libraries-java.md | 2 +-
.../version-2.4.1/client-libraries-java.md | 2 +-
.../version-2.4.2/client-libraries-java.md | 2 +-
.../version-2.5.0/client-libraries-java.md | 2 +-
.../version-2.5.1/client-libraries-java.md | 2 +-
.../version-2.5.2/client-libraries-java.md | 2 +-
.../version-2.6.0/client-libraries-java.md | 2 +-
.../version-2.6.1/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.6.1/security-oauth2.md | 10 ++++++----
.../version-2.6.2/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.6.2/security-oauth2.md | 10 ++++++----
.../version-2.6.3/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.6.3/security-oauth2.md | 10 ++++++----
.../version-2.6.4/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.6.4/security-oauth2.md | 4 +++-
.../version-2.7.0/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.7.0/security-oauth2.md | 4 +++-
.../version-2.7.1/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.7.1/security-oauth2.md | 4 +++-
.../version-2.7.2/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.7.2/security-oauth2.md | 10 ++++++----
.../version-2.7.3/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.7.3/security-oauth2.md | 10 ++++++----
.../version-2.7.4/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.7.4/security-oauth2.md | 10 ++++++----
.../version-2.8.0/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.8.0/security-oauth2.md | 15 ++++++++++-----
.../version-2.8.1/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.8.1/security-oauth2.md | 15 ++++++++++-----
.../version-2.8.2/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.8.2/security-oauth2.md | 15 ++++++++++-----
.../version-2.8.3/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.8.3/security-oauth2.md | 15 ++++++++++-----
.../version-2.9.0/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.9.0/security-oauth2.md | 15 ++++++++++-----
.../version-2.9.1/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.9.1/security-oauth2.md | 15 ++++++++++-----
.../version-2.9.2/client-libraries-java.md | 2 +-
.../versioned_docs/version-2.9.2/security-oauth2.md | 15 ++++++++++-----
48 files changed, 167 insertions(+), 102 deletions(-)
diff --git a/site2/website-next/docs/client-libraries-java.md b/site2/website-next/docs/client-libraries-java.md
index ef0f52ec27d..04485a4354c 100644
--- a/site2/website-next/docs/client-libraries-java.md
+++ b/site2/website-next/docs/client-libraries-java.md
@@ -1114,7 +1114,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/docs/concepts-messaging.md b/site2/website-next/docs/concepts-messaging.md
index 79da84c7293..4c5cbad6937 100644
--- a/site2/website-next/docs/concepts-messaging.md
+++ b/site2/website-next/docs/concepts-messaging.md
@@ -868,7 +868,7 @@ There are diverse system topics depending on namespaces. The following table out
| Namespace | TopicName | Domain | Count | Usage |
|-----------|-----------|--------|-------|-------|
| pulsar/system | `transaction_coordinator_assign_${id}` | Persistent | Default 16 | Transaction coordinator |
-| pulsar/system | `_transaction_log${tc_id}` | Persistent | Default 16 | Transaction log |
+| pulsar/system | `__transaction_log_${tc_id}` | Persistent | Default 16 | Transaction log |
| pulsar/system | `resource-usage` | Non-persistent | Default 4 | Resource group service |
| host/port | `heartbeat` | Persistent | 1 | Heartbeat detection |
| User-defined-ns | [`__change_events`](concepts-multi-tenancy.md#namespace-change-events-and-topic-level-policies) | Persistent | Default 4 | Topic events |
diff --git a/site2/website-next/docs/security-oauth2.md b/site2/website-next/docs/security-oauth2.md
index 45408d318e2..bc6a8b387c7 100644
--- a/site2/website-next/docs/security-oauth2.md
+++ b/site2/website-next/docs/security-oauth2.md
@@ -18,7 +18,7 @@ The authentication type determines how to obtain an access token through an OAut
:::note
-Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
:::
@@ -83,6 +83,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
URL issuerUrl = new URL("https://dev-kt-aa9ne.us.auth0.com");
URL credentialsUrl = new URL("file:///path/to/KeyFile.json");
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -213,7 +215,11 @@ This example shows how to configure OAuth2 authentication in Node.js client.
```
-> Note: The support for OAuth2 authentication is only available in Node.js client 1.6.2 and later versions.
+:::note
+
+The support for OAuth2 authentication is only available in Node.js client 1.6.2 and later versions.
+
+:::
## Broker configuration
To enable OAuth2 authentication in brokers, add the following parameters to the `broker.conf` or `standalone.conf` file.
@@ -251,7 +257,7 @@ tenants list
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-client
@@ -270,7 +276,7 @@ produce test-topic -m "test-message" -n 10
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-perf
@@ -288,5 +294,5 @@ bin/pulsar-perf produce --service-url pulsar+ssl://streamnative.cloud:6651 \
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
diff --git a/site2/website-next/versioned_docs/version-2.1.1-incubating/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.1.1-incubating/client-libraries-java.md
index 3f0ba313b59..3333d720092 100644
--- a/site2/website-next/versioned_docs/version-2.1.1-incubating/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.1.1-incubating/client-libraries-java.md
@@ -1114,7 +1114,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.10.0/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.10.0/client-libraries-java.md
index d50cbadff04..8cc2e064481 100644
--- a/site2/website-next/versioned_docs/version-2.10.0/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.10.0/client-libraries-java.md
@@ -1115,7 +1115,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.10.0/security-oauth2.md b/site2/website-next/versioned_docs/version-2.10.0/security-oauth2.md
index 63c7d968140..b1fdb124a4d 100644
--- a/site2/website-next/versioned_docs/version-2.10.0/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.10.0/security-oauth2.md
@@ -19,7 +19,7 @@ The authentication type determines how to obtain an access token through an OAut
:::note
-Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
:::
@@ -84,6 +84,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
URL issuerUrl = new URL("https://dev-kt-aa9ne.us.auth0.com");
URL credentialsUrl = new URL("file:///path/to/KeyFile.json");
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -214,7 +216,11 @@ This example shows how to configure OAuth2 authentication in Node.js client.
```
-> Note: The support for OAuth2 authentication is only available in Node.js client 1.6.2 and later versions.
+:::note
+
+The support for OAuth2 authentication is only available in Node.js client 1.6.2 and later versions.
+
+:::
## CLI configuration
@@ -235,7 +241,7 @@ tenants list
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-client
@@ -254,7 +260,7 @@ produce test-topic -m "test-message" -n 10
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-perf
@@ -272,5 +278,5 @@ bin/pulsar-perf produce --service-url pulsar+ssl://streamnative.cloud:6651 \
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
diff --git a/site2/website-next/versioned_docs/version-2.2.0/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.2.0/client-libraries-java.md
index 3f0ba313b59..3333d720092 100644
--- a/site2/website-next/versioned_docs/version-2.2.0/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.2.0/client-libraries-java.md
@@ -1114,7 +1114,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.3.0/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.3.0/client-libraries-java.md
index 3f0ba313b59..3333d720092 100644
--- a/site2/website-next/versioned_docs/version-2.3.0/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.3.0/client-libraries-java.md
@@ -1114,7 +1114,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.3.2/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.3.2/client-libraries-java.md
index 3f0ba313b59..3333d720092 100644
--- a/site2/website-next/versioned_docs/version-2.3.2/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.3.2/client-libraries-java.md
@@ -1114,7 +1114,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.4.0/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.4.0/client-libraries-java.md
index a2cfa83c6e7..bc970118a84 100644
--- a/site2/website-next/versioned_docs/version-2.4.0/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.4.0/client-libraries-java.md
@@ -491,7 +491,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.4.1/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.4.1/client-libraries-java.md
index cf0b0eac166..095d0475f41 100644
--- a/site2/website-next/versioned_docs/version-2.4.1/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.4.1/client-libraries-java.md
@@ -517,7 +517,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.4.2/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.4.2/client-libraries-java.md
index cf0b0eac166..095d0475f41 100644
--- a/site2/website-next/versioned_docs/version-2.4.2/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.4.2/client-libraries-java.md
@@ -517,7 +517,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.5.0/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.5.0/client-libraries-java.md
index aba256eaf65..6f37d6ebbad 100644
--- a/site2/website-next/versioned_docs/version-2.5.0/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.5.0/client-libraries-java.md
@@ -612,7 +612,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.5.1/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.5.1/client-libraries-java.md
index dbe4f76cddd..801f9894dad 100644
--- a/site2/website-next/versioned_docs/version-2.5.1/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.5.1/client-libraries-java.md
@@ -614,7 +614,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.5.2/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.5.2/client-libraries-java.md
index dbe4f76cddd..801f9894dad 100644
--- a/site2/website-next/versioned_docs/version-2.5.2/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.5.2/client-libraries-java.md
@@ -614,7 +614,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.6.0/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.6.0/client-libraries-java.md
index 1b55652f959..b6ced396cd0 100644
--- a/site2/website-next/versioned_docs/version-2.6.0/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.6.0/client-libraries-java.md
@@ -634,7 +634,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.6.1/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.6.1/client-libraries-java.md
index 4cac57232d7..2399c1ad3a3 100644
--- a/site2/website-next/versioned_docs/version-2.6.1/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.6.1/client-libraries-java.md
@@ -615,7 +615,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.6.1/security-oauth2.md b/site2/website-next/versioned_docs/version-2.6.1/security-oauth2.md
index efda09d6d7c..fbea9674901 100644
--- a/site2/website-next/versioned_docs/version-2.6.1/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.6.1/security-oauth2.md
@@ -18,7 +18,7 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+> Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
#### Client credentials
@@ -80,6 +80,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -165,7 +167,7 @@ tenants list
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-client
@@ -184,7 +186,7 @@ produce test-topic -m "test-message" -n 10
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-perf
@@ -202,5 +204,5 @@ bin/pulsar-perf produce --service-url pulsar+ssl://streamnative.cloud:6651 \
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
\ No newline at end of file
diff --git a/site2/website-next/versioned_docs/version-2.6.2/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.6.2/client-libraries-java.md
index 4cac57232d7..2399c1ad3a3 100644
--- a/site2/website-next/versioned_docs/version-2.6.2/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.6.2/client-libraries-java.md
@@ -615,7 +615,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.6.2/security-oauth2.md b/site2/website-next/versioned_docs/version-2.6.2/security-oauth2.md
index a05ee031088..06429c998b4 100644
--- a/site2/website-next/versioned_docs/version-2.6.2/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.6.2/security-oauth2.md
@@ -18,7 +18,7 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+> Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
#### Client credentials
@@ -80,6 +80,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -165,7 +167,7 @@ tenants list
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-client
@@ -184,7 +186,7 @@ produce test-topic -m "test-message" -n 10
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-perf
@@ -202,5 +204,5 @@ bin/pulsar-perf produce --service-url pulsar+ssl://streamnative.cloud:6651 \
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
\ No newline at end of file
diff --git a/site2/website-next/versioned_docs/version-2.6.3/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.6.3/client-libraries-java.md
index 4cac57232d7..2399c1ad3a3 100644
--- a/site2/website-next/versioned_docs/version-2.6.3/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.6.3/client-libraries-java.md
@@ -615,7 +615,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.6.3/security-oauth2.md b/site2/website-next/versioned_docs/version-2.6.3/security-oauth2.md
index a05ee031088..06429c998b4 100644
--- a/site2/website-next/versioned_docs/version-2.6.3/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.6.3/security-oauth2.md
@@ -18,7 +18,7 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+> Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
#### Client credentials
@@ -80,6 +80,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -165,7 +167,7 @@ tenants list
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-client
@@ -184,7 +186,7 @@ produce test-topic -m "test-message" -n 10
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-perf
@@ -202,5 +204,5 @@ bin/pulsar-perf produce --service-url pulsar+ssl://streamnative.cloud:6651 \
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
\ No newline at end of file
diff --git a/site2/website-next/versioned_docs/version-2.6.4/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.6.4/client-libraries-java.md
index 26388e50737..b9ce639e5e6 100644
--- a/site2/website-next/versioned_docs/version-2.6.4/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.6.4/client-libraries-java.md
@@ -615,7 +615,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.6.4/security-oauth2.md b/site2/website-next/versioned_docs/version-2.6.4/security-oauth2.md
index 95b3fcccd86..be59b5510eb 100644
--- a/site2/website-next/versioned_docs/version-2.6.4/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.6.4/security-oauth2.md
@@ -18,7 +18,7 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+> Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
#### Client credentials
@@ -80,6 +80,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com/oauth/token";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
diff --git a/site2/website-next/versioned_docs/version-2.7.0/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.7.0/client-libraries-java.md
index d92cf5aea26..8bdec5bc562 100644
--- a/site2/website-next/versioned_docs/version-2.7.0/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.7.0/client-libraries-java.md
@@ -655,7 +655,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.7.0/security-oauth2.md b/site2/website-next/versioned_docs/version-2.7.0/security-oauth2.md
index 600b2cf543d..da469dff5ef 100644
--- a/site2/website-next/versioned_docs/version-2.7.0/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.7.0/security-oauth2.md
@@ -18,7 +18,7 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+> Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
#### Client credentials
@@ -80,6 +80,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
diff --git a/site2/website-next/versioned_docs/version-2.7.1/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.7.1/client-libraries-java.md
index d92cf5aea26..8bdec5bc562 100644
--- a/site2/website-next/versioned_docs/version-2.7.1/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.7.1/client-libraries-java.md
@@ -655,7 +655,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.7.1/security-oauth2.md b/site2/website-next/versioned_docs/version-2.7.1/security-oauth2.md
index 600b2cf543d..da469dff5ef 100644
--- a/site2/website-next/versioned_docs/version-2.7.1/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.7.1/security-oauth2.md
@@ -18,7 +18,7 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+> Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
#### Client credentials
@@ -80,6 +80,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
diff --git a/site2/website-next/versioned_docs/version-2.7.2/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.7.2/client-libraries-java.md
index d92cf5aea26..8bdec5bc562 100644
--- a/site2/website-next/versioned_docs/version-2.7.2/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.7.2/client-libraries-java.md
@@ -655,7 +655,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.7.2/security-oauth2.md b/site2/website-next/versioned_docs/version-2.7.2/security-oauth2.md
index 5bb1e245619..df60e1d91e4 100644
--- a/site2/website-next/versioned_docs/version-2.7.2/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.7.2/security-oauth2.md
@@ -18,7 +18,7 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+> Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
#### Client credentials
@@ -80,6 +80,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -186,7 +188,7 @@ tenants list
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-client
@@ -205,7 +207,7 @@ produce test-topic -m "test-message" -n 10
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-perf
@@ -223,5 +225,5 @@ bin/pulsar-perf produce --service-url pulsar+ssl://streamnative.cloud:6651 \
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
diff --git a/site2/website-next/versioned_docs/version-2.7.3/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.7.3/client-libraries-java.md
index d92cf5aea26..8bdec5bc562 100644
--- a/site2/website-next/versioned_docs/version-2.7.3/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.7.3/client-libraries-java.md
@@ -655,7 +655,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.7.3/security-oauth2.md b/site2/website-next/versioned_docs/version-2.7.3/security-oauth2.md
index 5bb1e245619..df60e1d91e4 100644
--- a/site2/website-next/versioned_docs/version-2.7.3/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.7.3/security-oauth2.md
@@ -18,7 +18,7 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+> Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
#### Client credentials
@@ -80,6 +80,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -186,7 +188,7 @@ tenants list
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-client
@@ -205,7 +207,7 @@ produce test-topic -m "test-message" -n 10
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-perf
@@ -223,5 +225,5 @@ bin/pulsar-perf produce --service-url pulsar+ssl://streamnative.cloud:6651 \
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
diff --git a/site2/website-next/versioned_docs/version-2.7.4/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.7.4/client-libraries-java.md
index d92cf5aea26..8bdec5bc562 100644
--- a/site2/website-next/versioned_docs/version-2.7.4/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.7.4/client-libraries-java.md
@@ -655,7 +655,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.7.4/security-oauth2.md b/site2/website-next/versioned_docs/version-2.7.4/security-oauth2.md
index 5bb1e245619..df60e1d91e4 100644
--- a/site2/website-next/versioned_docs/version-2.7.4/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.7.4/security-oauth2.md
@@ -18,7 +18,7 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+> Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
#### Client credentials
@@ -80,6 +80,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -186,7 +188,7 @@ tenants list
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-client
@@ -205,7 +207,7 @@ produce test-topic -m "test-message" -n 10
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-perf
@@ -223,5 +225,5 @@ bin/pulsar-perf produce --service-url pulsar+ssl://streamnative.cloud:6651 \
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
diff --git a/site2/website-next/versioned_docs/version-2.8.0/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.8.0/client-libraries-java.md
index 16e3ec99590..cdc1794bab3 100644
--- a/site2/website-next/versioned_docs/version-2.8.0/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.8.0/client-libraries-java.md
@@ -655,7 +655,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.8.0/security-oauth2.md b/site2/website-next/versioned_docs/version-2.8.0/security-oauth2.md
index 600b2cf543d..4249e4afb1d 100644
--- a/site2/website-next/versioned_docs/version-2.8.0/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.8.0/security-oauth2.md
@@ -17,8 +17,11 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
-#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+:::note
+
+Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
+
+:::
#### Client credentials
@@ -80,6 +83,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -186,7 +191,7 @@ tenants list
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-client
@@ -205,7 +210,7 @@ produce test-topic -m "test-message" -n 10
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-perf
@@ -223,5 +228,5 @@ bin/pulsar-perf produce --service-url pulsar+ssl://streamnative.cloud:6651 \
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
\ No newline at end of file
diff --git a/site2/website-next/versioned_docs/version-2.8.1/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.8.1/client-libraries-java.md
index 28504f8d60c..b31b7a225f2 100644
--- a/site2/website-next/versioned_docs/version-2.8.1/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.8.1/client-libraries-java.md
@@ -658,7 +658,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.8.1/security-oauth2.md b/site2/website-next/versioned_docs/version-2.8.1/security-oauth2.md
index 600b2cf543d..4249e4afb1d 100644
--- a/site2/website-next/versioned_docs/version-2.8.1/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.8.1/security-oauth2.md
@@ -17,8 +17,11 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
-#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+:::note
+
+Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
+
+:::
#### Client credentials
@@ -80,6 +83,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -186,7 +191,7 @@ tenants list
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-client
@@ -205,7 +210,7 @@ produce test-topic -m "test-message" -n 10
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-perf
@@ -223,5 +228,5 @@ bin/pulsar-perf produce --service-url pulsar+ssl://streamnative.cloud:6651 \
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
\ No newline at end of file
diff --git a/site2/website-next/versioned_docs/version-2.8.2/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.8.2/client-libraries-java.md
index 28504f8d60c..b31b7a225f2 100644
--- a/site2/website-next/versioned_docs/version-2.8.2/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.8.2/client-libraries-java.md
@@ -658,7 +658,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.8.2/security-oauth2.md b/site2/website-next/versioned_docs/version-2.8.2/security-oauth2.md
index 600b2cf543d..4249e4afb1d 100644
--- a/site2/website-next/versioned_docs/version-2.8.2/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.8.2/security-oauth2.md
@@ -17,8 +17,11 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
-#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+:::note
+
+Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
+
+:::
#### Client credentials
@@ -80,6 +83,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -186,7 +191,7 @@ tenants list
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-client
@@ -205,7 +210,7 @@ produce test-topic -m "test-message" -n 10
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-perf
@@ -223,5 +228,5 @@ bin/pulsar-perf produce --service-url pulsar+ssl://streamnative.cloud:6651 \
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
\ No newline at end of file
diff --git a/site2/website-next/versioned_docs/version-2.8.3/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.8.3/client-libraries-java.md
index 28504f8d60c..b31b7a225f2 100644
--- a/site2/website-next/versioned_docs/version-2.8.3/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.8.3/client-libraries-java.md
@@ -658,7 +658,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.8.3/security-oauth2.md b/site2/website-next/versioned_docs/version-2.8.3/security-oauth2.md
index 600b2cf543d..4249e4afb1d 100644
--- a/site2/website-next/versioned_docs/version-2.8.3/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.8.3/security-oauth2.md
@@ -17,8 +17,11 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
-#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+:::note
+
+Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
+
+:::
#### Client credentials
@@ -80,6 +83,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
String issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";
String credentialsUrl = "file:///path/to/KeyFile.json";
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -186,7 +191,7 @@ tenants list
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-client
@@ -205,7 +210,7 @@ produce test-topic -m "test-message" -n 10
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-perf
@@ -223,5 +228,5 @@ bin/pulsar-perf produce --service-url pulsar+ssl://streamnative.cloud:6651 \
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
\ No newline at end of file
diff --git a/site2/website-next/versioned_docs/version-2.9.0/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.9.0/client-libraries-java.md
index dcfa4d64592..613e91f3fe5 100644
--- a/site2/website-next/versioned_docs/version-2.9.0/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.9.0/client-libraries-java.md
@@ -658,7 +658,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.9.0/security-oauth2.md b/site2/website-next/versioned_docs/version-2.9.0/security-oauth2.md
index d26e8857a36..d8421bc4755 100644
--- a/site2/website-next/versioned_docs/version-2.9.0/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.9.0/security-oauth2.md
@@ -17,8 +17,11 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
-#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+:::note
+
+Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
+
+:::
#### Client credentials
@@ -80,6 +83,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
URL issuerUrl = new URL("https://dev-kt-aa9ne.us.auth0.com");
URL credentialsUrl = new URL("file:///path/to/KeyFile.json");
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -186,7 +191,7 @@ tenants list
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-client
@@ -205,7 +210,7 @@ produce test-topic -m "test-message" -n 10
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-perf
@@ -223,5 +228,5 @@ bin/pulsar-perf produce --service-url pulsar+ssl://streamnative.cloud:6651 \
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
diff --git a/site2/website-next/versioned_docs/version-2.9.1/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.9.1/client-libraries-java.md
index dcfa4d64592..613e91f3fe5 100644
--- a/site2/website-next/versioned_docs/version-2.9.1/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.9.1/client-libraries-java.md
@@ -658,7 +658,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.9.1/security-oauth2.md b/site2/website-next/versioned_docs/version-2.9.1/security-oauth2.md
index 09f2fc71d18..97f3a6e26d8 100644
--- a/site2/website-next/versioned_docs/version-2.9.1/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.9.1/security-oauth2.md
@@ -17,8 +17,11 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
-#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+:::note
+
+Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
+
+:::
#### Client credentials
@@ -80,6 +83,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
URL issuerUrl = new URL("https://dev-kt-aa9ne.us.auth0.com");
URL credentialsUrl = new URL("file:///path/to/KeyFile.json");
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -186,7 +191,7 @@ tenants list
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-client
@@ -205,7 +210,7 @@ produce test-topic -m "test-message" -n 10
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-perf
@@ -223,5 +228,5 @@ bin/pulsar-perf produce --service-url pulsar+ssl://streamnative.cloud:6651 \
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
diff --git a/site2/website-next/versioned_docs/version-2.9.2/client-libraries-java.md b/site2/website-next/versioned_docs/version-2.9.2/client-libraries-java.md
index dcfa4d64592..613e91f3fe5 100644
--- a/site2/website-next/versioned_docs/version-2.9.2/client-libraries-java.md
+++ b/site2/website-next/versioned_docs/version-2.9.2/client-libraries-java.md
@@ -658,7 +658,7 @@ Consumer consumer2 = client.newConsumer()
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.subscribe()
-//Both consumer1 and consumer 2 is active consumers.
+//Both consumer1 and consumer2 are active consumers.
```
diff --git a/site2/website-next/versioned_docs/version-2.9.2/security-oauth2.md b/site2/website-next/versioned_docs/version-2.9.2/security-oauth2.md
index 09f2fc71d18..0ce597e78cc 100644
--- a/site2/website-next/versioned_docs/version-2.9.2/security-oauth2.md
+++ b/site2/website-next/versioned_docs/version-2.9.2/security-oauth2.md
@@ -17,8 +17,11 @@ This library allows you to authenticate the Pulsar client by using an access tok
The authentication type determines how to obtain an access token through an OAuth 2.0 authorization flow.
-#### Note
-> Currently, the Pulsar Java client only supports the `client_credentials` authentication type .
+:::note
+
+Currently, the Pulsar Java client only supports the `client_credentials` authentication type.
+
+:::
#### Client credentials
@@ -80,6 +83,8 @@ You can use the factory method to configure authentication for Pulsar Java clien
```java
+import org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2;
+
URL issuerUrl = new URL("https://dev-kt-aa9ne.us.auth0.com");
URL credentialsUrl = new URL("file:///path/to/KeyFile.json");
String audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/";
@@ -186,7 +191,7 @@ tenants list
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-client
@@ -205,7 +210,7 @@ produce test-topic -m "test-message" -n 10
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).
### pulsar-perf
@@ -223,5 +228,5 @@ bin/pulsar-perf produce --service-url pulsar+ssl://streamnative.cloud:6651 \
```
-Set the `admin-url` parameter to the Web service URL. A Web service URLis a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
+Set the `admin-url` parameter to the Web service URL. A Web service URL is a combination of the protocol, hostname and port ID, such as `pulsar://localhost:6650`.
Set the `privateKey`, `issuerUrl`, and `audience` parameters to the values based on the configuration in the key file. For details, see [authentication types](#authentication-types).