Package org.bouncycastle.cert.dane
Class DANEEntry
- java.lang.Object
 - 
- org.bouncycastle.cert.dane.DANEEntry
 
 
- 
public class DANEEntry extends java.lang.ObjectCarrier class for a DANE entry. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intCERT_USAGE_ACCEPTstatic intCERT_USAGE_CAstatic intCERT_USAGE_PKIX_VALIDATEstatic intCERT_USAGE_TRUST_ANCHOR 
- 
Constructor Summary
Constructors Constructor Description DANEEntry(java.lang.String domainName, byte[] data) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description X509CertificateHoldergetCertificate()Return the certificate associated with this entry.java.lang.StringgetDomainName()byte[]getFlags()byte[]getRDATA()Return the full data string as it would appear in the DNS record - flags + encodingstatic booleanisValidCertificate(byte[] data)Return true if the byte string has the correct flag bytes to indicate a certificate entry. 
 - 
 
- 
- 
Field Detail
- 
CERT_USAGE_CA
public static final int CERT_USAGE_CA
- See Also:
 - Constant Field Values
 
 
- 
CERT_USAGE_PKIX_VALIDATE
public static final int CERT_USAGE_PKIX_VALIDATE
- See Also:
 - Constant Field Values
 
 
- 
CERT_USAGE_TRUST_ANCHOR
public static final int CERT_USAGE_TRUST_ANCHOR
- See Also:
 - Constant Field Values
 
 
- 
CERT_USAGE_ACCEPT
public static final int CERT_USAGE_ACCEPT
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getFlags
public byte[] getFlags()
 
- 
getCertificate
public X509CertificateHolder getCertificate()
Return the certificate associated with this entry.- Returns:
 - the entry's certificate.
 
 
- 
getDomainName
public java.lang.String getDomainName()
 
- 
getRDATA
public byte[] getRDATA() throws java.io.IOExceptionReturn the full data string as it would appear in the DNS record - flags + encoding- Returns:
 - byte array representing the full data string.
 - Throws:
 java.io.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.
 
 
 - 
 
 -