smime.SMimeReceive Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smime-testing-rand Show documentation
Show all versions of smime-testing-rand Show documentation
Simple S/MIME library not dependent on Java Security
The newest version!
package smime;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.internet.MimeMessage;
import java.io.IOException;
import java.util.Properties;
public final class SMimeReceive {
public static SignedPart read(CryptoFactory factory, MimeMessage msg) throws CryptoException, IOException, MessagingException {
return MailReader.decrypt(factory, msg, false);
}
public static Session createFakeSession() {
Properties props = new Properties();
return Session.getDefaultInstance(props);
}
}