public class DANEEntry extends Object
Constructor and Description |
---|
DANEEntry(String domainName,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
X509CertificateHolder |
getCertificate()
Return the certificate associated with this entry.
|
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 DANEEntry(String domainName, byte[] data) throws IOException
IOException
public byte[] getFlags()
public X509CertificateHolder getCertificate()
public String getDomainName()
public byte[] getRDATA() throws IOException
IOException
- if there is an issue encoding the certificate inside this entry.public static boolean isValidCertificate(byte[] data)
data
- the byte string of interest.Copyright © 2016 BouncyCastle.org. All rights reserved.