org.xbill.DNS
Class CERTRecord

java.lang.Object
  |
  +--org.xbill.DNS.Record
        |
        +--org.xbill.DNS.CERTRecord

public class CERTRecord
extends Record

Certificate Record - Stores a certificate associated with a name. The certificate might also be associated with a KEYRecord.

See Also:
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, wireLength
 
Constructor Summary
CERTRecord(Name _name, short _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 toString()
          Converts to a String
 
Methods inherited from class org.xbill.DNS.Record
equals, fromString, fromWire, getDClass, getName, getRRsetType, getTTL, getType, getWireLength, hashCode, newRecord, newRecord, newRecord, toWire, toWireCanonical, withName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PKIX

public static final int PKIX
PKIX (X.509v3)

SPKI

public static final int SPKI
Simple Public Key Infrastructure

PGP

public static final int PGP
Pretty Good Privacy

URL

public static final int URL
Certificate stored in a URL

OID

public static final int OID
Object ID (private)
Constructor Detail

CERTRecord

public CERTRecord(Name _name,
                  short _dclass,
                  int _ttl,
                  int _certType,
                  int _keyTag,
                  int _alg,
                  byte[] _cert)
Creates a CERT Record from the given data
Parameters:
certType - The type of certificate (see constants)
keyTag - The ID of the associated KEYRecord, if present
alg - The algorithm of the associated KEYRecord, if present
cert - Binary data representing the certificate
Method Detail

toString

public String toString()
Converts to a String
Overrides:
toString in class Record

getCertType

public short getCertType()
Returns the type of certificate

getKeyTag

public short getKeyTag()
Returns the ID of the associated KEYRecord, if present

getAlgorithm

public byte getAlgorithm()
Returns the algorithm of the associated KEYRecord, if present

getCert

public byte[] getCert()
Returns the binary representation of the certificate