public class DNSKEY extends Data
| 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() |
java.lang.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(java.io.DataInputStream dis,
int length) |
void |
serialize(java.io.DataOutputStream dos)
The internal method used to serialize Data subclasses.
|
java.lang.String |
toString() |
equals, hashCode, length, toByteArray, toOutputStreampublic 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(java.io.DataInputStream dis, int length) throws java.io.IOException
java.io.IOExceptionpublic Record.TYPE getType()
Datapublic int getKeyTag()
public void serialize(java.io.DataOutputStream dos)
throws java.io.IOException
Datapublic java.lang.String toString()
toString in class java.lang.Objectpublic int getKeyLength()
public byte[] getKey()
public java.lang.String getKeyBase64()
public boolean keyEquals(byte[] otherKey)
public boolean isSecureEntryPoint()