Modifier and Type | Field and Description |
---|---|
private java.lang.String |
badReason |
private int |
edeReason |
private boolean |
isEmpty |
Modifier | Constructor and Description |
---|---|
private |
KeyEntry(Name name,
int dclass,
long ttl,
boolean isBad) |
private |
KeyEntry(SRRset rrset)
Create a new, positive key entry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isBad()
Gets an indication if this is a bad key, i.e.
|
boolean |
isGood()
Gets an indication if this is a good key, i.e.
|
boolean |
isNull()
Gets an indication if this is a null key, i.e.
|
static KeyEntry |
newBadKeyEntry(Name n,
int dclass,
long ttl)
Creates a new bad key entry without actual DNSKEYs, i.e.
|
static KeyEntry |
newKeyEntry(SRRset rrset)
Creates a new key entry from actual DNSKEYs.
|
static KeyEntry |
newNullKeyEntry(Name n,
int dclass,
long ttl)
Creates a new trusted key entry without actual DNSKEYs, i.e.
|
void |
setBadReason(int edeReason,
java.lang.String reason)
Sets the reason why this key entry is bad.
|
(package private) JustifiedSecStatus |
validateKeyFor(Name signerName)
Validate if this key instance is valid for the specified name.
|
getName, getSecurityStatus, getSignerName, setName, setSecurityStatus
private int edeReason
private java.lang.String badReason
private boolean isEmpty
private KeyEntry(SRRset rrset)
rrset
- The set of records to cache.private KeyEntry(Name name, int dclass, long ttl, boolean isBad)
public static KeyEntry newKeyEntry(SRRset rrset)
rrset
- The DNSKEYs to cache.public static KeyEntry newNullKeyEntry(Name n, int dclass, long ttl)
n
- The name for which the empty cache entry is created.dclass
- The DNS class.ttl
- The TTL [s].public static KeyEntry newBadKeyEntry(Name n, int dclass, long ttl)
n
- The name for which the bad cache entry is created.dclass
- The DNS class.ttl
- The TTL [s].public boolean isNull()
True
is it is null, false
otherwise.public boolean isBad()
True
is it is bad, false
otherwise.public boolean isGood()
True
is it is good, false
otherwise.public void setBadReason(int edeReason, java.lang.String reason)
reason
- The reason why this key entry is bad.JustifiedSecStatus validateKeyFor(Name signerName)
signerName
- the name against which this key is validated.