// Path: sd-dss-util-lib/src/main/java/it/latraccia/dss/util/exception/SignatureMoccaAlgorithmMismatchException.java
// public class SignatureMoccaAlgorithmMismatchException extends SignatureException {
//     public SignatureMoccaAlgorithmMismatchException() {
//     }
//     public SignatureMoccaAlgorithmMismatchException(Exception e) {
//         super(e);
//     }
// 
//     @Override
//     public String getMessage() {
//         return "The selected MOCCA algorithm is not valid!";
//     }
// }
// 
// Path: sd-dss-util-lib/src/main/java/it/latraccia/dss/util/exception/SignatureMoccaUnavailabilityException.java
// public class SignatureMoccaUnavailabilityException extends SignatureException {
//     public SignatureMoccaUnavailabilityException() {
//     }
//     public SignatureMoccaUnavailabilityException(Exception e) {
//         super(e);
//     }
// 
//     @Override
//     public String getMessage() {
//         return "MOCCA is not available!";
//     }
// }


import java.io.FileNotFoundException;
import it.latraccia.dss.util.exception.SignatureMoccaAlgorithmMismatchException;
import it.latraccia.dss.util.exception.SignatureMoccaUnavailabilityException;
/*
 * SD-DSS-Util, a Utility Library and a Command Line Interface for SD-DSS.
 * Copyright (C) 2013 La Traccia http://www.latraccia.it/en/
 * Developed by Francesco Pontillo
 *
 * This program 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 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see [http://www.gnu.org/licenses/].
 */

package it.latraccia.dss.util.builder.token;



/**
 * Date: 07/12/13
 * Time: 9.08
 *
 * @author Francesco Pontillo
 */
public abstract class PKCSTokenBuilder extends TokenBuilder {
    protected String file;
    protected String password;

    @Override
// Path: sd-dss-util-lib/src/main/java/it/latraccia/dss/util/exception/SignatureMoccaAlgorithmMismatchException.java
// public class SignatureMoccaAlgorithmMismatchException extends SignatureException {
//     public SignatureMoccaAlgorithmMismatchException() {
//     }
//     public SignatureMoccaAlgorithmMismatchException(Exception e) {
//         super(e);
//     }
// 
//     @Override
//     public String getMessage() {
//         return "The selected MOCCA algorithm is not valid!";
//     }
// }
// 
// Path: sd-dss-util-lib/src/main/java/it/latraccia/dss/util/exception/SignatureMoccaUnavailabilityException.java
// public class SignatureMoccaUnavailabilityException extends SignatureException {
//     public SignatureMoccaUnavailabilityException() {
//     }
//     public SignatureMoccaUnavailabilityException(Exception e) {
//         super(e);
//     }
// 
//     @Override
//     public String getMessage() {
//         return "MOCCA is not available!";
//     }
// }


// Path: sd-dss-util-lib/src/main/java/it/latraccia/dss/util/builder/token/PKCSTokenBuilder.java
import java.io.FileNotFoundException;
import it.latraccia.dss.util.exception.SignatureMoccaAlgorithmMismatchException;
import it.latraccia.dss.util.exception.SignatureMoccaUnavailabilityException;

/*
 * SD-DSS-Util, a Utility Library and a Command Line Interface for SD-DSS.
 * Copyright (C) 2013 La Traccia http://www.latraccia.it/en/
 * Developed by Francesco Pontillo
 *
 * This program 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 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see [http://www.gnu.org/licenses/].
 */

package it.latraccia.dss.util.builder.token;



/**
 * Date: 07/12/13
 * Time: 9.08
 *
 * @author Francesco Pontillo
 */
public abstract class PKCSTokenBuilder extends TokenBuilder {
    protected String file;
    protected String password;

    @Override
    public SignatureToken build() throws SignatureMoccaAlgorithmMismatchException, SignatureMoccaUnavailabilityException, FileNotFoundException {