no.difi.sdp.client2.asice.manifest.Manifest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sikker-digital-post-klient-java Show documentation
Show all versions of sikker-digital-post-klient-java Show documentation
Klient for sending av sikker digital post fra offentlige virksomheter.
package no.difi.sdp.client2.asice.manifest;
import no.difi.sdp.client2.asice.AsicEAttachable;
public class Manifest implements AsicEAttachable {
private final byte[] xmlBytes;
public Manifest(byte[] xmlBytes) {
this.xmlBytes = xmlBytes;
}
@Override
public String getFileName() {
return "manifest.xml";
}
@Override
public byte[] getBytes() {
return xmlBytes;
}
@Override
public String getMimeType() {
return "application/xml";
}
}