org.whispersystems.signalservice.internal.push.SignalServiceUrl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signal-service-java Show documentation
Show all versions of signal-service-java Show documentation
Signal Service communication library for Java
package org.whispersystems.signalservice.internal.push;
import org.whispersystems.libsignal.util.guava.Optional;
import org.whispersystems.signalservice.api.push.TrustStore;
public class SignalServiceUrl {
private final String url;
private final Optional hostHeader;
private TrustStore trustStore;
public SignalServiceUrl(String url, TrustStore trustStore) {
this(url, null, trustStore);
}
public SignalServiceUrl(String url, String hostHeader, TrustStore trustStore) {
this.url = url;
this.hostHeader = Optional.fromNullable(hostHeader);
this.trustStore = trustStore;
}
public Optional getHostHeader() {
return hostHeader;
}
public String getUrl() {
return url;
}
public TrustStore getTrustStore() {
return trustStore;
}
}