package at.knowcenter.wag.egov.egiz.sig.sigid; /** * {@link IdFormatter} implementation that uses specified algorithmid but not additional parameters.
* usage A-Trust bku * @author dferbas * */ public class SimpleIdFormatter implements IdFormatter { private String algorithmId; public SimpleIdFormatter(String algorithmId) { this.algorithmId = algorithmId; } public String formatIds(String[] ids, String algorithmParams) { // dferbas if (algorithmParams != null && algorithmParams.length() > 0) { return this.algorithmId + ":" + algorithmParams; } else { return this.algorithmId; } } }