public final class KeyEntry extends SRRset
Name, with or without actual keys.| 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(org.xbill.DNS.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(org.xbill.DNS.Name n,
int dclass,
long ttl)
Creates a new trusted key entry without actual DNSKEYs, i.e.
|
void |
setBadReason(String reason)
Sets the reason why this key entry is bad.
|
getName, getSecurityStatus, getSignerName, setName, setSecurityStatuspublic static KeyEntry newKeyEntry(SRRset rrset)
rrset - The DNSKEYs to cache.public static KeyEntry newNullKeyEntry(org.xbill.DNS.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(org.xbill.DNS.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(String reason)
reason - The reason why this key entry is bad.Copyright © 2020 jitsi.org. All rights reserved.