Bouncy Castle Cryptography Library 1.84

org.bouncycastle.bcpg
Class PublicKeyUtils

java.lang.Object
  extended byorg.bouncycastle.bcpg.PublicKeyUtils

public class PublicKeyUtils
extends java.lang.Object

Utility methods related to OpenPGP public key algorithms.


Constructor Summary
PublicKeyUtils()
           
 
Method Summary
static boolean isEncryptionAlgorithm(int publicKeyAlgorithm)
          Return true, if the public key algorithm that corresponds to the given ID is capable of encryption.
static boolean isSigningAlgorithm(int publicKeyAlgorithm)
          Return true, if the public key algorithm that corresponds to the given ID is capable of signing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicKeyUtils

public PublicKeyUtils()
Method Detail

isSigningAlgorithm

public static boolean isSigningAlgorithm(int publicKeyAlgorithm)
Return true, if the public key algorithm that corresponds to the given ID is capable of signing.

Parameters:
publicKeyAlgorithm - public key algorithm id
Returns:
true if algorithm can sign

isEncryptionAlgorithm

public static boolean isEncryptionAlgorithm(int publicKeyAlgorithm)
Return true, if the public key algorithm that corresponds to the given ID is capable of encryption.

Parameters:
publicKeyAlgorithm - public key algorithm id
Returns:
true if algorithm can encrypt

Bouncy Castle Cryptography Library 1.84