Bouncy Castle Cryptography Library 1.81

org.bouncycastle.openpgp.operator
Class PGPContentSignerBuilderProvider

java.lang.Object
  extended byorg.bouncycastle.openpgp.operator.PGPContentSignerBuilderProvider
Direct Known Subclasses:
BcPGPContentSignerBuilderProvider, JcaPGPContentSignerBuilderProvider

public abstract class PGPContentSignerBuilderProvider
extends java.lang.Object

Provider class for PGPContentSignerBuilder instances. Concrete implementations of this class can choose the cryptographic backend (BC, JCA/JCE).


Field Summary
protected  int hashAlgorithmId
           
 
Constructor Summary
PGPContentSignerBuilderProvider(int hashAlgorithmId)
          Constructor.
 
Method Summary
abstract  PGPContentSignerBuilder get(PGPPublicKey signingKey)
          Return a new instance of the PGPContentSignerBuilder for the given signing key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hashAlgorithmId

protected final int hashAlgorithmId
Constructor Detail

PGPContentSignerBuilderProvider

public PGPContentSignerBuilderProvider(int hashAlgorithmId)
Constructor.

Parameters:
hashAlgorithmId - ID of the hash algorithm the PGPContentSignerBuilder shall use.
Method Detail

get

public abstract PGPContentSignerBuilder get(PGPPublicKey signingKey)
Return a new instance of the PGPContentSignerBuilder for the given signing key.

Parameters:
signingKey - public part of the signing key
Returns:
content signer builder

Bouncy Castle Cryptography Library 1.81