Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.18 KB

File metadata and controls

51 lines (35 loc) · 1.18 KB

zerodep-web-push-java-ext-jwt-fusionauth

Provides an implementation for com.zerodeplibs.webpush.jwt.VAPIDJWTGenerator utilizing FusionAuth JWT.

Requirements

The recommended version of io.fusionauth:fusionauth-jwt is 4.0.0 or higher(The latest version is more desirable).

Usage

pom.xml

You can use this sub-module by adding the dependency to your pom.xml.

<dependency>
    <groupId>com.zerodeplibs</groupId>
    <artifactId>zerodep-web-push-java</artifactId>
    <version>2.1.2</version>
</dependency>
<dependency>
    <groupId>com.zerodeplibs</groupId>
    <artifactId>zerodep-web-push-java-ext-jwt-fusionauth</artifactId>
    <version>2.1.2</version>
    <scope>runtime</scope>
</dependency>

java

By calling com.zerodeplibs.webpush.VAPIDKeyPairs#of(PrivateKeySource, PublicKeySource), the implementation class provided by this sub-module is loaded automatically.

VAPIDKeyPairs.of(
    PrivateKeySources.of..... ,
    PublicKeySources.of.......
);

MISC

Thread-safety

The implementations of this sub-module are thread-safe.