Skip to content

Commit 74b0afc

Browse files
author
gefeili
committed
Update from #1926
1 parent 8a190b4 commit 74b0afc

File tree

7 files changed

+31
-0
lines changed

7 files changed

+31
-0
lines changed

pg/src/main/java/org/bouncycastle/openpgp/operator/PBEDataDecryptorFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
/**
99
* A factory for performing PBE decryption operations.
10+
* The purpose of this class is to act as an abstract factory, whose subclasses can decide, which concrete
11+
* implementation to use for symmetric decryption of SKESK (symmetric-key-encrypted session-key) packets.
1012
*/
1113
public abstract class PBEDataDecryptorFactory
1214
implements PGPDataDecryptorFactory

pg/src/main/java/org/bouncycastle/openpgp/operator/PGPContentSignerBuilder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
import org.bouncycastle.openpgp.PGPException;
44
import org.bouncycastle.openpgp.PGPPrivateKey;
55

6+
/**
7+
* Builder for {@link PGPContentSigner} objects.
8+
* The purpose of this class is to act as an abstract factory, whose subclasses can decide, which concrete
9+
* implementation to use for the {@link PGPContentSigner}.
10+
*/
611
public interface PGPContentSignerBuilder
712
{
813
PGPContentSigner build(final int signatureType, final PGPPrivateKey privateKey)

pg/src/main/java/org/bouncycastle/openpgp/operator/PGPContentVerifierBuilderProvider.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
import org.bouncycastle.openpgp.PGPException;
44

5+
/**
6+
* Provider for {@link PGPContentVerifierBuilder} instances.
7+
* The purpose of this class is to act as an abstract factory, whose subclasses can decide, which concrete
8+
* implementation of {@link PGPContentVerifierBuilder} (builder for objects check signatures for correctness)
9+
* to provide.
10+
*/
511
public interface PGPContentVerifierBuilderProvider
612
{
713
PGPContentVerifierBuilder get(int keyAlgorithm, int hashAlgorithm)

pg/src/main/java/org/bouncycastle/openpgp/operator/PGPDigestCalculatorProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
/**
77
* A factory for digest algorithms.
8+
* The purpose of this class is to act as an abstract factory, whose subclasses can decide, which concrete
9+
* implementation to use for calculating PGP digests.
810
*/
911
public interface PGPDigestCalculatorProvider
1012
{

pg/src/main/java/org/bouncycastle/openpgp/operator/PublicKeyDataDecryptorFactory.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
import org.bouncycastle.bcpg.PublicKeyEncSessionPacket;
55
import org.bouncycastle.openpgp.PGPException;
66

7+
/**
8+
* Factory for public-key based {@link PGPDataDecryptor PGPDataDecryptors}.
9+
* The purpose of this class is to act as an abstract factory, whose subclasses can decide, which concrete
10+
* implementation to use to decrypt OpenPGP messages that were encrypted to a public-key.
11+
*/
712
public interface PublicKeyDataDecryptorFactory
813
extends PGPDataDecryptorFactory
914
{

pg/src/main/java/org/bouncycastle/openpgp/operator/PublicKeyKeyEncryptionMethodGenerator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
import java.io.IOException;
1212
import java.math.BigInteger;
1313

14+
/**
15+
* Abstract generator class for encryption methods that produce PKESK (public-key encrypted session key) packets.
16+
* PKESKs are used when encrypting a message for a recipients public key.
17+
* The purpose of this class is to allow subclasses to decide, which implementation to use.
18+
*/
1419
public abstract class PublicKeyKeyEncryptionMethodGenerator
1520
extends PGPKeyEncryptionMethodGenerator
1621
{

pg/src/main/java/org/bouncycastle/openpgp/operator/SessionKeyDataDecryptorFactory.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
import org.bouncycastle.openpgp.PGPSessionKey;
44

5+
/**
6+
* Factory for {@link PGPDataDecryptor} objects that use a {@link PGPSessionKey} to decrypt the content of an
7+
* OpenPGP message.
8+
* The purpose of this class is to act as an abstract factory, whose subclasses can decide, which concrete
9+
* implementation to use for message decryption.
10+
*/
511
public interface SessionKeyDataDecryptorFactory
612
extends PGPDataDecryptorFactory
713
{

0 commit comments

Comments
 (0)