public class HIPRecord extends Record
for PK algorithm numbers
Constructor and Description |
---|
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,
List<Name> servers) |
HIPRecord(Name name,
int dclass,
long ttl,
byte[] hit,
int alg,
PublicKey key) |
HIPRecord(Name name,
int dclass,
long ttl,
byte[] hit,
int alg,
PublicKey key,
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.
|
PublicKey |
getPublicKey()
Gets the public key of this RR as a Java
PublicKey . |
List<Name> |
getRvServers() |
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 String |
rrToString()
Converts the type-specific RR to text format - must be overriden.
|
protected void |
rrToWire(DNSOutput out,
Compression c,
boolean canonical)
Converts the type-specific RR to wire format - must be overriden
|
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
public HIPRecord(Name name, int dclass, long ttl, byte[] hit, int alg, byte[] key, 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, PublicKey key, List<Name> servers) throws DNSSEC.DNSSECException
DNSSEC.DNSSECException
public HIPRecord(Name name, int dclass, long ttl, byte[] hit, int alg, PublicKey key) throws DNSSEC.DNSSECException
DNSSEC.DNSSECException
public byte[] getHit()
public int getAlgorithm()
IPSECKEYRecord.Algorithm
public byte[] getKey()
getAlgorithm()
.public PublicKey getPublicKey() throws DNSSEC.DNSSECException
PublicKey
. Only supported for RSA/DSA PK
algorithm (ECDSA lacks the information about which curve is used).DNSSEC.DNSSECException
protected String rrToString()
Record
rrToString
in class Record
protected void rdataFromString(Tokenizer st, Name origin) throws IOException
Record
rdataFromString
in class Record
IOException
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Record
protected void rrFromWire(DNSInput in) throws IOException
Record
rrFromWire
in class Record
IOException
Copyright © 2021 dnsjava.org. All rights reserved.