Search in sources :

Example 1 with AutocryptOpenPgpApiInteractor

use of com.fsck.k9.autocrypt.AutocryptOpenPgpApiInteractor in project k-9 by k9mail.

the class PgpMessageBuilder method newInstance.

public static PgpMessageBuilder newInstance() {
    MessageIdGenerator messageIdGenerator = MessageIdGenerator.getInstance();
    BoundaryGenerator boundaryGenerator = BoundaryGenerator.getInstance();
    AutocryptOperations autocryptOperations = AutocryptOperations.getInstance();
    AutocryptOpenPgpApiInteractor autocryptOpenPgpApiInteractor = AutocryptOpenPgpApiInteractor.getInstance();
    CoreResourceProvider resourceProvider = DI.get(CoreResourceProvider.class);
    return new PgpMessageBuilder(messageIdGenerator, boundaryGenerator, autocryptOperations, autocryptOpenPgpApiInteractor, resourceProvider);
}
Also used : CoreResourceProvider(com.fsck.k9.CoreResourceProvider) AutocryptOperations(com.fsck.k9.autocrypt.AutocryptOperations) AutocryptOpenPgpApiInteractor(com.fsck.k9.autocrypt.AutocryptOpenPgpApiInteractor) MessageIdGenerator(com.fsck.k9.mail.internet.MessageIdGenerator) BoundaryGenerator(com.fsck.k9.mail.BoundaryGenerator)

Aggregations

CoreResourceProvider (com.fsck.k9.CoreResourceProvider)1 AutocryptOpenPgpApiInteractor (com.fsck.k9.autocrypt.AutocryptOpenPgpApiInteractor)1 AutocryptOperations (com.fsck.k9.autocrypt.AutocryptOperations)1 BoundaryGenerator (com.fsck.k9.mail.BoundaryGenerator)1 MessageIdGenerator (com.fsck.k9.mail.internet.MessageIdGenerator)1