Package org.apache.james.jdkim.impl

Examples of org.apache.james.jdkim.impl.CompoundBodyHasher


            } else {
                throw new PermFailException("Unexpected condition with "+fields);
            }
        }

        return new CompoundBodyHasher(bodyHashJobs, signatureExceptions);
    }
View Full Code Here


       
        BodyHasher bh = newBodyHasher(messageHeaders);
       
        if (bh == null) return null;
       
        CompoundBodyHasher cbh = validateBodyHasher(bh);

        // simultaneous computation of all the hashes.
        DKIMCommon.streamCopy(bodyInputStream, cbh.getOutputStream());

        return verify(cbh);
    }
View Full Code Here

     * @return a list of valid (verified) signatures or null on null input.
     * @throws FailException if no valid signature is found
     */
    public List<SignatureRecord> verify(BodyHasher bh) throws FailException {
        if (bh == null) return null;
        CompoundBodyHasher cbh = validateBodyHasher(bh);
       
        return verify(cbh);
    }
View Full Code Here

            throws PermFailException {
        if (!(bh instanceof CompoundBodyHasher)) {
            throw new PermFailException("Unexpected BodyHasher type: this is not generated by DKIMVerifier!");
        }
       
        CompoundBodyHasher cbh = (CompoundBodyHasher) bh;
        return cbh;
    }
View Full Code Here

TOP

Related Classes of org.apache.james.jdkim.impl.CompoundBodyHasher

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.