1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-18 02:12:06 +01:00

Document ProviderFactory

This commit is contained in:
Paul Schaub 2023-05-16 16:34:57 +02:00
parent d3ae02f137
commit 126571a6cd
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 11 additions and 0 deletions

View file

@ -8,6 +8,9 @@ import java.security.Provider;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
/**
* Implementation of {@link ProviderFactory} using a {@link BouncyCastleProvider}.
*/
public final class BouncyCastleProviderFactory extends ProviderFactory {
private static final Provider provider = new BouncyCastleProvider();

View file

@ -6,6 +6,14 @@ package org.pgpainless.provider;
import java.security.Provider;
/**
* Allow the use of different {@link Provider} implementations to provide cryptographic primitives by setting
* a {@link ProviderFactory} singleton.
* By default, the class is initialized with a {@link BouncyCastleProviderFactory}.
* <br>
* To make use of your own custom {@link Provider}, call {@link #setFactory(ProviderFactory)}, passing your
* own custom {@link ProviderFactory} instance.
*/
public abstract class ProviderFactory {
private static ProviderFactory FACTORY;