/** * Get the algorithm used to calculate the message digest, e.g. "SHA1withRSA". * @return the algorithm used to calculate the message digest */ public String GetDigestAlgorithm() { String dea = EncryptionAlgorithms.GetAlgorithm(digestEncryptionAlgorithmOid); if (dea == null) { dea = digestEncryptionAlgorithmOid; } return(GetHashAlgorithm() + "with" + dea); }