
infobip.api.config.IbssoAuthConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infobip-api-java-client Show documentation
Show all versions of infobip-api-java-client Show documentation
API client in Java for Infobip's API (http://dev.infobip.com/).
package infobip.api.config;
/**
* Created by denis on 13.07.15..
*/
public class IbssoAuthConfiguration extends Configuration {
private final String ibssoToken;
public IbssoAuthConfiguration(String baseUrl, String ibssoToken) {
this.baseUrl = baseUrl;
this.ibssoToken = ibssoToken;
}
public IbssoAuthConfiguration(String ibssoToken) {
this.baseUrl = "https://api.infobip.com";
this.ibssoToken = ibssoToken;
}
@Override
public String getAuthorizationHeader() {
return "IBSSO " + ibssoToken;
}
public String getIbssoToken() {
return ibssoToken;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy