Package org.bouncycastle.cert.dane
Class DANEEntry
java.lang.Object
org.bouncycastle.cert.dane.DANEEntry
Carrier class for a DANE entry.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the certificate associated with this entry.byte[]
getFlags()
byte[]
getRDATA()
Return the full data string as it would appear in the DNS record - flags + encodingstatic boolean
isValidCertificate
(byte[] data) Return true if the byte string has the correct flag bytes to indicate a certificate entry.
-
Field Details
-
CERT_USAGE_CA
public static final int CERT_USAGE_CA- See Also:
-
CERT_USAGE_PKIX_VALIDATE
public static final int CERT_USAGE_PKIX_VALIDATE- See Also:
-
CERT_USAGE_TRUST_ANCHOR
public static final int CERT_USAGE_TRUST_ANCHOR- See Also:
-
CERT_USAGE_ACCEPT
public static final int CERT_USAGE_ACCEPT- See Also:
-
-
Constructor Details
-
DANEEntry
- Throws:
IOException
-
-
Method Details
-
getFlags
public byte[] getFlags() -
getCertificate
Return the certificate associated with this entry.- Returns:
- the entry's certificate.
-
getDomainName
-
getRDATA
Return the full data string as it would appear in the DNS record - flags + encoding- Returns:
- byte array representing the full data string.
- Throws:
IOException
- if there is an issue encoding the certificate inside this entry.
-
isValidCertificate
public static boolean isValidCertificate(byte[] data) Return true if the byte string has the correct flag bytes to indicate a certificate entry.- Parameters:
data
- the byte string of interest.- Returns:
- true if flags indicate a valid certificate, false otherwise.
-