no.difi.sdp.client2.asice.signature.Signature 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.signature;
import no.difi.sdp.client2.asice.AsicEAttachable;
public class Signature implements AsicEAttachable {
private final byte[] xmlBytes;
public Signature(byte[] xmlBytes) {
this.xmlBytes = xmlBytes;
}
@Override
public String getFileName() {
return "META-INF/signatures.xml";
}
public byte[] getBytes() {
return xmlBytes;
}
@Override
public String getMimeType() {
return "application/xml";
}
}