public final class AlgorithmWhitelist extends Object implements Constraint
Constraint restricts signature verification to a specific set of SignatureAlgorithms.| Constructor and Description |
|---|
AlgorithmWhitelist(Set<SignatureAlgorithm> algorithmWhitelist) |
| Modifier and Type | Method and Description |
|---|---|
void |
validate(org.jose4j.jws.JsonWebSignature jws)
Ensures JWS was signed using a whitelisted signature algorithm.
|
public AlgorithmWhitelist(Set<SignatureAlgorithm> algorithmWhitelist)
public void validate(org.jose4j.jws.JsonWebSignature jws)
throws KeyConstraintException
validate in interface Constraintjws - token to be verified.KeyConstraintException - if was signed with an algorithm which was not whitelisted.