org.xbill.DNS.security
Class CERTConverter

java.lang.Object
  extended by org.xbill.DNS.security.CERTConverter

public class CERTConverter
extends Object

Routines to convert between a DNS CERT record and a Java Certificate.

Author:
Brian Wellington
See Also:
CERTRecord, Certificate

Constructor Summary
CERTConverter()
           
 
Method Summary
static CERTRecord buildRecord(Name name, int dclass, long ttl, Certificate cert)
          Builds a CERT record from a Certificate
static CERTRecord buildRecord(Name name, int dclass, long ttl, Certificate cert, int tag, int alg)
          Builds a CERT record from a Certificate associated with a key also in DNS
static Certificate parseRecord(CERTRecord r)
          Converts a CERT record into a Certificate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CERTConverter

public CERTConverter()
Method Detail

parseRecord

public static Certificate parseRecord(CERTRecord r)
Converts a CERT record into a Certificate


buildRecord

public static CERTRecord buildRecord(Name name,
                                     int dclass,
                                     long ttl,
                                     Certificate cert,
                                     int tag,
                                     int alg)
Builds a CERT record from a Certificate associated with a key also in DNS


buildRecord

public static CERTRecord buildRecord(Name name,
                                     int dclass,
                                     long ttl,
                                     Certificate cert)
Builds a CERT record from a Certificate