All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.digipost.signature.client.core.Document Maven / Gradle / Ivy

package no.digipost.signature.client.core;

import no.digipost.signature.client.asice.ASiCEAttachable;

public class Document implements ASiCEAttachable {

    private final String title;
    private final String mediaType;
    private final String fileName;
    private final byte[] content;

    public Document(String title, String mediaType, String fileName, byte[] content) {
        this.title = title;
        this.mediaType = mediaType;
        this.fileName = fileName;
        this.content = content;
    }

    public String getTitle() {
        return title;
    }

    @Override
    public String getFileName() {
        return fileName;
    }

    @Override
    public String getMediaType() {
        return mediaType;
    }

    @Override
    public byte[] getContent() {
        return content;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy