All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zerodeplibs.webpush.ext.jwt.jose4j.Jose4jVAPIDJWTGeneratorFactory Maven / Gradle / Ivy

package com.zerodeplibs.webpush.ext.jwt.jose4j;

import com.zerodeplibs.webpush.jwt.VAPIDJWTGenerator;
import com.zerodeplibs.webpush.jwt.VAPIDJWTGeneratorFactory;
import java.security.interfaces.ECPrivateKey;
import java.security.interfaces.ECPublicKey;

/**
 * The factory class for {@link VAPIDJWTGenerator}.
 * {@link VAPIDJWTGenerator}s generated by this class utilizes jose4j.
 *
 * @author Tomoki Sato
 */
public class Jose4jVAPIDJWTGeneratorFactory implements VAPIDJWTGeneratorFactory {
    @Override
    public VAPIDJWTGenerator create(
        ECPrivateKey privateKey,
        ECPublicKey publicKey) {
        return new Jose4jVAPIDJWTGenerator(privateKey);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy