public class DANEEntry
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
CERT_USAGE_ACCEPT |
|
static int |
CERT_USAGE_CA |
|
static int |
CERT_USAGE_PKIX_VALIDATE |
|
static int |
CERT_USAGE_TRUST_ANCHOR |
Constructor | Description |
---|---|
DANEEntry(java.lang.String domainName,
byte[] data) |
Modifier and Type | Method | Description |
---|---|---|
X509CertificateHolder |
getCertificate() |
Return the certificate associated with this entry.
|
java.lang.String |
getDomainName() |
|
byte[] |
getFlags() |
|
byte[] |
getRDATA() |
Return the full data string as it would appear in the DNS record - flags + encoding
|
static boolean |
isValidCertificate(byte[] data) |
Return true if the byte string has the correct flag bytes to indicate a certificate entry.
|
public static final int CERT_USAGE_CA
public static final int CERT_USAGE_PKIX_VALIDATE
public static final int CERT_USAGE_TRUST_ANCHOR
public static final int CERT_USAGE_ACCEPT
public DANEEntry(java.lang.String domainName, byte[] data) throws java.io.IOException
java.io.IOException
public byte[] getFlags()
public X509CertificateHolder getCertificate()
public java.lang.String getDomainName()
public byte[] getRDATA() throws java.io.IOException
java.io.IOException
- if there is an issue encoding the certificate inside this entry.public static boolean isValidCertificate(byte[] data)
data
- the byte string of interest.