Package org.apache.ivy.plugins.signer

Examples of org.apache.ivy.plugins.signer.SignatureGenerator


        }
    }

    protected void putSignature(Artifact artifact, File src, String dest, boolean overwrite)
            throws IOException {
        SignatureGenerator gen = getSettings().getSignatureGenerator(signerName);
        if (gen == null) {
            throw new IllegalArgumentException("Couldn't sign the artifacts! "
                    + "Unknown signer name: '" + signerName + "'");
        }

        File tempFile = File.createTempFile("ivytemp", gen.getExtension());

        try {
            gen.sign(src, tempFile);
            repository.put(
                DefaultArtifact.cloneWithAnotherTypeAndExt(artifact, gen.getExtension(),
                    artifact.getExt() + "." + gen.getExtension()), tempFile,
                dest + "." + gen.getExtension(), overwrite);
        } finally {
            tempFile.delete();
        }
    }
View Full Code Here


            csFile.delete();
        }
    }

    protected void putSignature(Artifact artifact, File src, String dest, boolean overwrite) throws IOException {
        SignatureGenerator gen = getSettings().getSignatureGenerator(signerName);
        if (gen == null) {
            throw new IllegalArgumentException("Couldn't sign the artifacts! " +
                    "Unknown signer name: '" + signerName + "'");
        }

        File tempFile = File.createTempFile("ivytemp", gen.getExtension());

        try {
            gen.sign(src, tempFile);
            repository.put(DefaultArtifact.cloneWithAnotherTypeAndExt(artifact,
                    gen.getExtension(), artifact.getExt() + "." + gen.getExtension()),
                    tempFile, dest + "." + gen.getExtension(), overwrite);
        } finally {
            tempFile.delete();
        }
    }
View Full Code Here

            csFile.delete();
        }
    }

    protected void putSignature(Artifact artifact, File src, String dest, boolean overwrite) throws IOException {
        SignatureGenerator gen = getSettings().getSignatureGenerator(signerName);
        if (gen == null) {
            throw new IllegalArgumentException("Couldn't sign the artifacts! " +
                    "Unknown signer name: '" + signerName + "'");
        }

        File tempFile = File.createTempFile("ivytemp", gen.getExtension());

        try {
            gen.sign(src, tempFile);
            repository.put(DefaultArtifact.cloneWithAnotherTypeAndExt(artifact,
                    gen.getExtension(), artifact.getExt() + "." + gen.getExtension()),
                    tempFile, dest + "." + gen.getExtension(), overwrite);
        } finally {
            tempFile.delete();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.ivy.plugins.signer.SignatureGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.