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, withNamepublic 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.DNSSECExceptionpublic HIPRecord(Name name, int dclass, long ttl, byte[] hit, int alg, PublicKey key) throws DNSSEC.DNSSECException
DNSSEC.DNSSECExceptionpublic byte[] getHit()
public int getAlgorithm()
IPSECKEYRecord.Algorithmpublic 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.DNSSECExceptionprotected String rrToString()
RecordrrToString in class Recordprotected void rdataFromString(Tokenizer st, Name origin) throws IOException
RecordrdataFromString in class RecordIOExceptionprotected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Recordprotected void rrFromWire(DNSInput in) throws IOException
RecordrrFromWire in class RecordIOExceptionCopyright © 2021 dnsjava.org. All rights reserved.