|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.cert.dane.DANEEntry
Carrier class for a DANE entry.
| Field Summary | |
static int |
CERT_USAGE_ACCEPT
|
static int |
CERT_USAGE_CA
|
static int |
CERT_USAGE_PKIX_VALIDATE
|
static int |
CERT_USAGE_TRUST_ANCHOR
|
| Constructor Summary | |
DANEEntry(java.lang.String domainName,
byte[] data)
Create an entry from the RDATA of a DNS record. |
|
| Method Summary | |
X509CertificateHolder |
getCertificate()
Return the certificate associated with this entry. |
java.lang.String |
getDomainName()
Return the owner name of the DNS record this entry came from or is destined for. |
byte[] |
getFlags()
Return the three flag bytes: certificate usage, selector and matching type. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
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
| Constructor Detail |
public DANEEntry(java.lang.String domainName,
byte[] data)
throws java.io.IOException
domainName - the owner name of the record.data - the record's RDATA: the three flag bytes followed by the certificate encoding.
java.io.IOException - if the flags do not describe a full certificate entry (see isValidCertificate(byte[]))
or the certificate encoding is malformed.| Method Detail |
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.
|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||