public class DNSKEY extends Data
| Modifier and Type | Field and Description |
|---|---|
DnssecConstants.SignatureAlgorithm | algorithmThe public key's cryptographic algorithm used. |
byte | algorithmByteThe byte value of the public key's cryptographic algorithm used. |
static short | FLAG_REVOKEWhether the record holds a revoked key. |
static short | FLAG_SECURE_ENTRY_POINTWhether the key should be used as a secure entry point key. |
static short | FLAG_ZONEWhether the record holds a DNS zone key. |
short | flags |
byte | protocolMust be PROTOCOL_RFC4034. |
static byte | PROTOCOL_RFC4034Use the protocol defined in RFC 4034. |
| Constructor and Description |
|---|
DNSKEY(short flags,
byte protocol,
byte algorithm,
byte[] key)DNSKEY. |
DNSKEY(short flags,
byte protocol,
DnssecConstants.SignatureAlgorithm algorithm,
byte[] key)DNSKEY. |
| Modifier and Type | Method and Description |
|---|---|
byte[] | getKey()getKey. |
DataInputStream | getKeyAsDataInputStream()getKeyAsDataInputStream. |
String | getKeyBase64()getKeyBase64. |
BigInteger | getKeyBigInteger()getKeyBigInteger. |
int | getKeyLength()getKeyLength. |
int | getKeyTag()Retrieve the key tag identifying this DNSKEY. |
Record.TYPE | getType()getType. |
boolean | isSecureEntryPoint()isSecureEntryPoint. |
boolean | keyEquals(byte[] otherKey)keyEquals. |
static DNSKEY | parse(DataInputStream dis,
int length)parse. |
void | serialize(DataOutputStream dos)serialize. |
String | toString()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()
public boolean isSecureEntryPoint()
public boolean keyEquals(byte[] otherKey)
public static DNSKEY parse(DataInputStream dis, int length) throws IOException
IOExceptionpublic void serialize(DataOutputStream dos) throws IOException
serialize in class Datados - the output stream to serialize to.IOException - if an I/O error occurs.