public class CollectionAlgorithmValidator extends Object implements AlgorithmValidator
AlgorithmValidator where the permitted algorithms
are contained in a static collection.| Modifier and Type | Field and Description |
|---|---|
static CollectionAlgorithmValidator |
INSTANCE |
| Constructor and Description |
|---|
CollectionAlgorithmValidator(Collection<SignAlgo> algos)
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static CollectionAlgorithmValidator |
buildAlgorithmValidator(Collection<String> algoNames) |
Set<String> |
getAlgoNames() |
Set<SignAlgo> |
getAlgos() |
boolean |
isAlgorithmPermitted(org.bouncycastle.asn1.x509.AlgorithmIdentifier algId) |
boolean |
isAlgorithmPermitted(SignAlgo algo) |
public static final CollectionAlgorithmValidator INSTANCE
public CollectionAlgorithmValidator(Collection<SignAlgo> algos)
algos - algorithms that can be accepted. null or empty to accept
all algorithmspublic static CollectionAlgorithmValidator buildAlgorithmValidator(Collection<String> algoNames) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic boolean isAlgorithmPermitted(org.bouncycastle.asn1.x509.AlgorithmIdentifier algId)
isAlgorithmPermitted in interface AlgorithmValidatorpublic boolean isAlgorithmPermitted(SignAlgo algo)
isAlgorithmPermitted in interface AlgorithmValidatorCopyright © 2023. All rights reserved.