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()
Policy
public String getType()
Policy
public void setFallbackPolicy(Policy policy)
Policy
setFallbackPolicy
in interface Policy
policy
- fallback policy to be used when signature does not verify with given policy.public Policy getFallbackPolicy()
Policy
Policy.setFallbackPolicy(Policy)
.getFallbackPolicy
in interface Policy
Policy
if fallback policy is set.Copyright © 2024 Guardtime. All rights reserved.