|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xbill.DNS.Record
org.xbill.DNS.CERTRecord
Certificate Record - Stores a certificate associated with a name. The certificate might also be associated with a KEYRecord.
KEYRecord
Field Summary | |
static int |
OID
Object ID (private) |
static int |
PGP
Pretty Good Privacy |
static int |
PKIX
PKIX (X.509v3) |
static int |
SPKI
Simple Public Key Infrastructure |
static int |
URL
Certificate stored in a URL |
Fields inherited from class org.xbill.DNS.Record |
dclass, name, ttl, type |
Constructor Summary | |
CERTRecord(Name name,
int dclass,
int ttl,
int certType,
int keyTag,
int alg,
byte[] cert)
Creates a CERT Record from the given data |
Method Summary | |
byte |
getAlgorithm()
Returns the algorithm of the associated KEYRecord, if present |
byte[] |
getCert()
Returns the binary representation of the certificate |
short |
getCertType()
Returns the type of certificate |
short |
getKeyTag()
Returns the ID of the associated KEYRecord, if present |
String |
rdataToString()
Converts rdata to a String |
Methods inherited from class org.xbill.DNS.Record |
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToWireCanonical, remainingStrings, toString, toWire, toWireCanonical, withName |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PKIX
public static final int SPKI
public static final int PGP
public static final int URL
public static final int OID
Constructor Detail |
public CERTRecord(Name name, int dclass, int 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 certificateMethod Detail |
public String rdataToString()
rdataToString
in class Record
public short getCertType()
public short getKeyTag()
public byte getAlgorithm()
public byte[] getCert()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |