Modifier and Type | Field and Description |
---|---|
DnssecConstants.SignatureAlgorithm |
algorithm
The public key's cryptographic algorithm used.
|
byte |
algorithmByte
The byte value of the public key's cryptographic algorithm used.
|
static short |
FLAG_REVOKE
Whether the record holds a revoked key.
|
static short |
FLAG_SECURE_ENTRY_POINT
Whether the key should be used as a secure entry point key.
|
static short |
FLAG_ZONE
Whether the record holds a DNS zone key.
|
short |
flags
|
byte |
protocol
Must be
PROTOCOL_RFC4034 . |
static byte |
PROTOCOL_RFC4034
Use the protocol defined in RFC 4034.
|
Constructor and Description |
---|
DNSKEY(short flags,
byte protocol,
byte algorithm,
byte[] key) |
DNSKEY(short flags,
byte protocol,
DnssecConstants.SignatureAlgorithm algorithm,
byte[] key) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getKey() |
String |
getKeyBase64() |
int |
getKeyLength() |
int |
getKeyTag()
Retrieve the key tag identifying this DNSKEY.
|
Record.TYPE |
getType()
The payload type.
|
boolean |
isSecureEntryPoint() |
boolean |
keyEquals(byte[] otherKey) |
static DNSKEY |
parse(DataInputStream dis,
int length) |
void |
serialize(DataOutputStream dos)
The internal method used to serialize Data subclasses.
|
String |
toString() |
equals, hashCode, length, toByteArray, toOutputStream
public static final short FLAG_SECURE_ENTRY_POINT
public static final short FLAG_REVOKE
public static final short FLAG_ZONE
public static final byte PROTOCOL_RFC4034
public final short flags
public final byte protocol
PROTOCOL_RFC4034
.public final DnssecConstants.SignatureAlgorithm algorithm
public final byte algorithmByte
public DNSKEY(short flags, byte protocol, byte algorithm, byte[] key)
public DNSKEY(short flags, byte protocol, DnssecConstants.SignatureAlgorithm algorithm, byte[] key)
public static DNSKEY parse(DataInputStream dis, int length) throws IOException
IOException
public Record.TYPE getType()
Data
public int getKeyTag()
public void serialize(DataOutputStream dos) throws IOException
Data
serialize
in class Data
dos
- the output stream to serialize to.IOException
- if an I/O error occurs.public int getKeyLength()
public byte[] getKey()
public String getKeyBase64()
public boolean keyEquals(byte[] otherKey)
public boolean isSecureEntryPoint()