final class TrustAnchorStore
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,SRRset> |
map |
Constructor and Description |
---|
TrustAnchorStore()
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all stored trust anchors.
|
SRRset |
find(Name name,
int dclass)
Gets the closest trusted key for the given name or
null if no match is found. |
java.util.Collection<SRRset> |
items()
Gets all trust anchors currently in use.
|
private java.lang.String |
key(Name n,
int dclass) |
private SRRset |
lookup(java.lang.String key) |
void |
store(SRRset rrset)
Stores the given RRset as known trusted keys.
|
private final java.util.Map<java.lang.String,SRRset> map
public void store(SRRset rrset)
rrset
- The key set to store as trusted.public SRRset find(Name name, int dclass)
null
if no match is found.name
- The name to search for.dclass
- The class of the keys.name
or null
.public void clear()
public java.util.Collection<SRRset> items()
private SRRset lookup(java.lang.String key)
private java.lang.String key(Name n, int dclass)