Module com.zerodeplibs.webpush
Package com.zerodeplibs.webpush.jwt
Class DefaultVAPIDJWTGeneratorFactory
- java.lang.Object
-
- com.zerodeplibs.webpush.jwt.DefaultVAPIDJWTGeneratorFactory
-
- All Implemented Interfaces:
VAPIDJWTGeneratorFactory
public class DefaultVAPIDJWTGeneratorFactory extends Object implements VAPIDJWTGeneratorFactory
The default factory class for
VAPIDJWTGenerator.If you want to specify an additional claim, its value must be an instance of
String,Boolean,Integer,Long,Double,DateorInstant.- Author:
- Tomoki Sato
- See Also:
VAPIDKeyPairs
-
-
Constructor Summary
Constructors Constructor Description DefaultVAPIDJWTGeneratorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VAPIDJWTGeneratorcreate(ECPrivateKey privateKey, ECPublicKey publicKey)Creates a newVAPIDJWTGeneratorwith the given private key and public key.
-
-
-
Method Detail
-
create
public VAPIDJWTGenerator create(ECPrivateKey privateKey, ECPublicKey publicKey)
Creates a new
VAPIDJWTGeneratorwith the given private key and public key.- Specified by:
createin interfaceVAPIDJWTGeneratorFactory- Parameters:
privateKey- a private key.publicKey- a public key.- Returns:
- a new
VAPIDJWTGenerator.
-
-