public class InternalVerificationPolicy extends Object implements Policy
| Constructor and Description |
|---|
InternalVerificationPolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRule(Rule rule)
Used to add a new rule to the list of rules to be used to verify signature.
|
Policy |
getFallbackPolicy()
Used to get the fallback policy set by
Policy.setFallbackPolicy(Policy). |
String |
getName()
Human readable name of the policy
|
List<Rule> |
getRules()
Returns the list of rules to be used verify the KSI signature.
|
String |
getType()
This method returns the type of the policy.
|
void |
setFallbackPolicy(Policy policy)
Adds fallback policy to be used when signature does not verify with given policy.
|
protected final void addRule(Rule rule)
rule - rule to be added. not null.public List<Rule> getRules()
public String getName()
Policypublic String getType()
Policypublic void setFallbackPolicy(Policy policy)
PolicysetFallbackPolicy in interface Policypolicy - fallback policy to be used when signature does not verify with given policy.public Policy getFallbackPolicy()
PolicyPolicy.setFallbackPolicy(Policy).getFallbackPolicy in interface PolicyPolicy if fallback policy is set.Copyright © 2024 Guardtime. All rights reserved.