1 package com.srv4pos.server.api.infrastructure.credentials; 2 3 /** 4 * Interface for all Credentials. 5 * <p>User: Kirill, Date: 19.09.13 13:40</p>. 6 */ 7 public interface Credentials { 8 9 /** 10 * Returns Base64 based authentication. 11 * @return Base64 {@code String} 12 */ 13 String toAuthentication(); 14 15 /** 16 * Returns sellerId. SellerId is concatenate of seller's country and seller's corporate ID. 17 * @return {@code String} of format {sellerCountry}{sellerCorporateID}, otherwise 18 * returns {@code null} if current credentials doesn't work work with sellerId. 19 */ 20 String getSellerId(); 21 }