com.identityx.clientSDK.piiSupport.transactionContentProviders.TextTransactionContentProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of IdentityXClientSDK Show documentation
Show all versions of IdentityXClientSDK Show documentation
Client SDK for IdentityX Rest Services
package com.identityx.clientSDK.piiSupport.transactionContentProviders;
import org.apache.commons.codec.binary.Base64;
import com.identityx.clientSDK.piiSupport.DisplayPNGCharacteristics;
public class TextTransactionContentProvider implements ITransactionContentProvider {
private String content;
public TextTransactionContentProvider(String textToDisplay) {
this.content = Base64.encodeBase64String(textToDisplay.getBytes());
}
@Override
public String getContent() {
return content;
}
@Override
public String getContent(DisplayPNGCharacteristics descriptor) {
return content;
}
@Override
public boolean isContentTypeSupported(String contentType) {
if (contentType.toLowerCase().equals("text/plain")) {
return true;
}
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy