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() |
DataInputStream |
getKeyAsDataInputStream() |
String |
getKeyBase64() |
BigInteger |
getKeyBigInteger() |
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, toOutputStreampublic final DnssecConstants.SignatureAlgorithm algorithm
public final byte algorithmByte
public static final short FLAG_REVOKE
public static final short FLAG_SECURE_ENTRY_POINT
public static final short FLAG_ZONE
public final short flags
public final byte protocol
PROTOCOL_RFC4034.public static final byte PROTOCOL_RFC4034
public DNSKEY(short flags,
byte protocol,
byte algorithm,
byte[] key)
public DNSKEY(short flags,
byte protocol,
DnssecConstants.SignatureAlgorithm algorithm,
byte[] key)
public byte[] getKey()
public DataInputStream getKeyAsDataInputStream()
public String getKeyBase64()
public BigInteger getKeyBigInteger()
public int getKeyLength()
public int getKeyTag()
public Record.TYPE getType()
Datapublic boolean isSecureEntryPoint()
public boolean keyEquals(byte[] otherKey)
public static DNSKEY parse(DataInputStream dis, int length) throws IOException
IOExceptionpublic void serialize(DataOutputStream dos) throws IOException
Dataserialize in class Datados - the output stream to serialize to.IOException - if an I/O error occurs.