org.xbill.DNS
public class CERTRecord extends Record
KEYRecord
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
CERTRecord.CertificateType |
Modifier and Type | Field and Description |
---|---|
static int |
OID
Certificate format defined by IOD
|
static int |
PGP
Pretty Good Privacy
|
static int |
PKIX
PKIX (X.509v3)
|
static int |
SPKI
Simple Public Key Infrastructure
|
static int |
URI
Certificate format defined by URI
|
Constructor and Description |
---|
CERTRecord(Name name,
int dclass,
long ttl,
int certType,
int keyTag,
int alg,
byte[] cert)
Creates a CERT Record from the given data
|
Modifier and Type | Method and Description |
---|---|
int |
getAlgorithm()
Returns the algorithm of the associated KEYRecord, if present
|
byte[] |
getCert()
Returns the binary representation of the certificate
|
int |
getCertType()
Returns the type of certificate
|
int |
getKeyTag()
Returns the ID of the associated KEYRecord, if present
|
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 static final int PKIX
public static final int SPKI
public static final int PGP
public static final int URI
public static final int OID
public CERTRecord(Name name, int dclass, long ttl, int certType, int keyTag, int alg, byte[] cert)
certType
- The type of certificate (see constants)keyTag
- The ID of the associated KEYRecord, if presentalg
- The algorithm of the associated KEYRecord, if presentcert
- Binary data representing the certificatepublic int getCertType()
public int getKeyTag()
public int getAlgorithm()
public byte[] getCert()