Module com.zerodeplibs.webpush
Package com.zerodeplibs.webpush.jwt
Interface VAPIDJWTGeneratorFactory
-
- All Known Implementing Classes:
DefaultVAPIDJWTGeneratorFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface VAPIDJWTGeneratorFactory
Implementations of this interface provide the functionality for creating
VAPIDJWTGenerator.Typically, an implementation of this interface is provided automatically.
-
If you don't have a dependency on a sub-module for
VAPIDJWTGenerator, the default implementation(DefaultVAPIDJWTGeneratorFactory) is automatically used. -
If you have dependencies on one or more of the sub-modules(zerodep-web-push-java-ext-jwt),
the instance of
VAPIDJWTGeneratorFactorycan be loaded viaServiceLoader.
Thread Safety:Depends on implementations. The default implementation(
DefaultVAPIDJWTGeneratorFactory) and all of the implementations provided by zerodep-web-push-java-ext-jwt are thread-safe.- Author:
- Tomoki Sato
- See Also:
VAPIDKeyPairs.of(PrivateKeySource, PublicKeySource)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VAPIDJWTGeneratorcreate(ECPrivateKey privateKey, ECPublicKey publicKey)Creates a newVAPIDJWTGeneratorwith the given private key and public key.
-
-
-
Method Detail
-
create
VAPIDJWTGenerator create(ECPrivateKey privateKey, ECPublicKey publicKey)
Creates a newVAPIDJWTGeneratorwith the given private key and public key.- Parameters:
privateKey- a private key.publicKey- a public key.- Returns:
- a new
VAPIDJWTGenerator.
-
-