public class CollectionAlgorithmValidator extends Object implements AlgorithmValidator
| Constructor and Description |
|---|
CollectionAlgorithmValidator(Collection<String> algoNames)
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAlgoNames() |
boolean |
isAlgorithmPermitted(org.bouncycastle.asn1.x509.AlgorithmIdentifier algId) |
boolean |
isAlgorithmPermitted(String algoName) |
public CollectionAlgorithmValidator(Collection<String> algoNames) throws NoSuchAlgorithmException
algoNames - algorithm names that can be accepted. null or empty to accept
all algorithmsNoSuchAlgorithmException - if any algoName is unknown.public boolean isAlgorithmPermitted(org.bouncycastle.asn1.x509.AlgorithmIdentifier algId)
isAlgorithmPermitted in interface AlgorithmValidatorpublic boolean isAlgorithmPermitted(String algoName)
isAlgorithmPermitted in interface AlgorithmValidatorCopyright © 2018. All rights reserved.