public class HIPRecord extends Record
for PK algorithm numbers,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private byte[] |
hit |
private int |
pkAlgorithm |
private byte[] |
publicKey |
private java.util.List<Name> |
rvServers |
| Constructor and Description |
|---|
HIPRecord() |
HIPRecord(Name name,
int dclass,
long ttl,
byte[] hit,
int alg,
byte[] key) |
HIPRecord(Name name,
int dclass,
long ttl,
byte[] hit,
int alg,
byte[] key,
java.util.List<Name> servers) |
HIPRecord(Name name,
int dclass,
long ttl,
byte[] hit,
int alg,
java.security.PublicKey key) |
HIPRecord(Name name,
int dclass,
long ttl,
byte[] hit,
int alg,
java.security.PublicKey key,
java.util.List<Name> servers) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAlgorithm()
Gets the PK algorithm number as defined in IPSECKEY
Resource Record Parameters
|
byte[] |
getHit() |
byte[] |
getKey()
Gets the raw public key bytes.
|
java.security.PublicKey |
getPublicKey()
Gets the public key of this RR as a Java
PublicKey. |
java.util.List<Name> |
getRvServers() |
private static int |
mapAlgTypeToDnssec(int alg) |
protected void |
rdataFromString(Tokenizer st,
Name origin)
Converts the text format of an RR to the internal format - must be overriden
|
protected void |
rrFromWire(DNSInput in)
Converts the type-specific RR to wire format - must be overridden
|
protected java.lang.String |
rrToString()
Converts the type-specific RR to text format - must be overridden.
|
protected void |
rrToWire(DNSOutput out,
Compression c,
boolean canonical)
Converts the type-specific RR to wire format - must be overridden.
|
byteArrayFromString, byteArrayToString, checkByteArrayLength, checkName, checkU16, checkU32, checkU8, cloneRecord, compareTo, equals, fromString, fromString, fromWire, fromWire, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplaceprivate byte[] hit
private int pkAlgorithm
private byte[] publicKey
private final java.util.List<Name> rvServers
HIPRecord()
public HIPRecord(Name name, int dclass, long ttl, byte[] hit, int alg, byte[] key, java.util.List<Name> servers)
public HIPRecord(Name name, int dclass, long ttl, byte[] hit, int alg, byte[] key)
public HIPRecord(Name name, int dclass, long ttl, byte[] hit, int alg, java.security.PublicKey key, java.util.List<Name> servers) throws DNSSEC.DNSSECException
DNSSEC.DNSSECExceptionpublic HIPRecord(Name name, int dclass, long ttl, byte[] hit, int alg, java.security.PublicKey key) throws DNSSEC.DNSSECException
DNSSEC.DNSSECExceptionpublic byte[] getHit()
public int getAlgorithm()
IPSECKEYRecord.Algorithmpublic byte[] getKey()
getAlgorithm().public java.security.PublicKey getPublicKey()
throws DNSSEC.DNSSECException
PublicKey. Only supported for RSA/DSA PK
algorithm (ECDSA lacks the information about which curve is used).DNSSEC.DNSSECExceptionpublic java.util.List<Name> getRvServers()
private static int mapAlgTypeToDnssec(int alg)
throws DNSSEC.UnsupportedAlgorithmException
protected java.lang.String rrToString()
RecordrrToString in class Recordprotected void rdataFromString(Tokenizer st, Name origin) throws java.io.IOException
RecordrdataFromString in class Recordjava.io.IOExceptionprotected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Recordprotected void rrFromWire(DNSInput in) throws java.io.IOException
RecordrrFromWire in class Recordjava.io.IOException