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 class
Certificate type identifiers. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Certificate format defined by IODstatic final int
Pretty Good Privacystatic final int
PKIX (X.509v3)static final int
Simple Public Key Infrastructurestatic final int
Certificate 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 TypeMethodDescriptionint
Returns the algorithm of the associated KEYRecord, if presentbyte[]
getCert()
Returns the binary representation of the certificateint
Returns the type of certificateint
Returns the ID of the associated KEYRecord, if presentprotected void
rdataFromString
(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected void
rrFromWire
(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected String
Converts rdata to a Stringprotected void
rrToWire
(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:Record
Converts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWire
in classRecord
- Throws:
IOException
-
rdataFromString
Description copied from class:Record
Converts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromString
in classRecord
- Throws:
IOException
-
rrToString
Converts rdata to a String- Specified by:
rrToString
in 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:Record
Converts the type-specific RR to wire format - must be overridden.
-