public final class KeyEntry extends Object
Name
, with or without actual keys.Modifier and Type | Method | Description |
---|---|---|
String |
getBadReason() |
Gets the reason why this key entry is bad.
|
int |
getDClass() |
Gets the DNS class.
|
org.xbill.DNS.Name |
getName() |
Gets the name of the cache entry.
|
SRRset |
getRRset() |
Gets the DNSKEYs for the cached key entry.
|
long |
getTTL() |
Gets the TTL [s].
|
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.
|
public 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 SRRset getRRset()
null
.null
.public org.xbill.DNS.Name getName()
public int getDClass()
public long getTTL()
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 String getBadReason()
public void setBadReason(String reason)
reason
- The reason why this key entry is bad.Copyright © 2018 jitsi.org. All rights reserved.