public class BCHelper extends Object
| Constructor and Description |
|---|
BCHelper() |
| Modifier and Type | Method and Description |
|---|---|
static MessageDigest |
getMessageDigest(String algorithm)
Creates a MessageDigest object using the BouncyCastle provider.
|
static void |
registerProvider()
Registers BouncyCastle as provider if not already registered.
|
public static void registerProvider()
public static MessageDigest getMessageDigest(String algorithm) throws NoSuchAlgorithmException
NoSuchProviderException is
disguised as NoSuchAlgorithmException.algorithm - Algorithm to be use to create the MessageDigest object.NoSuchAlgorithmException - Thrown in cases when unknown algorithms are requestes.Copyright © 2023 NorStella. All rights reserved.