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