Package org.xbill.DNS
Class CERTRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.CERTRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
Certificate Record - Stores a certificate associated with a name. The certificate might also be
associated with a KEYRecord.
- Author:
- Brian Wellington
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCertificate type identifiers. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCertificate format defined by IODstatic final intPretty Good Privacystatic final intPKIX (X.509v3)static final intSimple Public Key Infrastructurestatic final intCertificate format defined by URI -
Constructor Summary
ConstructorsConstructorDescriptionCERTRecord(Name name, int dclass, long ttl, int certType, int keyTag, int alg, byte[] cert) Creates a CERT Record from the given data -
Method Summary
Modifier and TypeMethodDescriptionintReturns the algorithm of the associated KEYRecord, if presentbyte[]getCert()Returns the binary representation of the certificateintReturns the type of certificateintReturns the ID of the associated KEYRecord, if presentprotected voidrdataFromString(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected voidrrFromWire(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected StringConverts rdata to a Stringprotected voidrrToWire(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.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, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Field Details
-
PKIX
public static final int PKIXPKIX (X.509v3)- See Also:
-
SPKI
public static final int SPKISimple Public Key Infrastructure- See Also:
-
PGP
public static final int PGPPretty Good Privacy- See Also:
-
URI
public static final int URICertificate format defined by URI- See Also:
-
OID
public static final int OIDCertificate format defined by IOD- See Also:
-
-
Constructor Details
-
CERTRecord
Creates a CERT Record from the given data- Parameters:
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 certificate
-
-
Method Details
-
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
rdataFromString
Description copied from class:RecordConverts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromStringin classRecord- Throws:
IOException
-
rrToString
Converts rdata to a String- Specified by:
rrToStringin classRecord
-
getCertType
public int getCertType()Returns the type of certificate -
getKeyTag
public int getKeyTag()Returns the ID of the associated KEYRecord, if present -
getAlgorithm
public int getAlgorithm()Returns the algorithm of the associated KEYRecord, if present -
getCert
public byte[] getCert()Returns the binary representation of the certificate -
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-