io.github.yawenok.apns.http2.config.auth.JWTAuthConfig Maven / Gradle / Ivy
package io.github.yawenok.apns.http2.config.auth;
import io.github.yawenok.apns.http2.config.AuthConfig;
import io.github.yawenok.apns.http2.enums.auth.AuthMode;
import java.io.File;
public class JWTAuthConfig extends AuthConfig {
private final File caFile;
private final File privateKeyFile;
private final String keyId;
private final String teamId;
public JWTAuthConfig(File caFile, File privateKeyFile, String keyId, String teamId) {
super(AuthMode.JWT);
this.caFile = caFile;
this.privateKeyFile = privateKeyFile;
this.keyId = keyId;
this.teamId = teamId;
}
public File getCaFile() {
return caFile;
}
public File getPrivateKeyFile() {
return privateKeyFile;
}
public String getKeyId() {
return keyId;
}
public String getTeamId() {
return teamId;
}
}