/************************************************************************* * * * SignServer: The OpenSource Automated Signing Server * * * * This software is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or any later version. * * * * See terms of license at gnu.org. * * * *************************************************************************/ package org.signserver.client.cli.defaultimpl; import java.io.IOException; import java.io.OutputStream; import java.util.Map; import org.signserver.common.CryptoTokenOfflineException; import org.signserver.common.IllegalRequestException; import org.signserver.common.SignServerException; /** * Interface for classes that can sign documents. * * @author Markus KilÄs * $Id: DocumentSigner.java 2090 2012-02-01 16:41:43Z netmackan $ */ public interface DocumentSigner { void sign(final byte[] data, final String encoding, final OutputStream out, final Map requestContext) throws IllegalRequestException, CryptoTokenOfflineException, SignServerException, IOException; void sign(final byte[] data, final String encoding, final Map requestContext) throws IllegalRequestException, CryptoTokenOfflineException, SignServerException, IOException; void sign(final byte[] data) throws IllegalRequestException, CryptoTokenOfflineException, SignServerException, IOException; void sign(final byte[] data, final OutputStream out, final Map requestContext) throws IllegalRequestException, CryptoTokenOfflineException, SignServerException, IOException; }