public class KeyCertificateImpl extends Object implements KeyCertificate
| Constructor and Description |
|---|
KeyCertificateImpl() |
| Modifier and Type | Method and Description |
|---|---|
HexDigest |
getAuthorityFingerprint()
Return fingerprint of the authority identity key as specified in
the certificate.
|
TorPublicKey |
getAuthorityIdentityKey()
Return the authority identity public key from the certificate.
|
TorPublicKey |
getAuthoritySigningKey()
Return the authority signing public key from the certificate.
|
IPv4Address |
getDirectoryAddress()
Return the network address of this directory authority
or
null if no address was specified in the certificate. |
int |
getDirectoryPort()
Return the port on which this directory authority answers
directory requests or 0 if no port was specified in the certificate.
|
Timestamp |
getKeyExpiryTime()
Return the time after which this document and signing key are
no longer valid.
|
Timestamp |
getKeyPublishedTime()
Return the time when this document and corresponding keys were
generated.
|
ByteBuffer |
getRawDocumentBytes() |
String |
getRawDocumentData() |
boolean |
isExpired()
Return
true if the current time is past the key
expiry time of this certificate. |
boolean |
isValidDocument() |
String |
toString() |
public boolean isValidDocument()
isValidDocument in interface Documentpublic IPv4Address getDirectoryAddress()
KeyCertificatenull if no address was specified in the certificate.getDirectoryAddress in interface KeyCertificatenull if not available.public int getDirectoryPort()
KeyCertificategetDirectoryPort in interface KeyCertificatepublic HexDigest getAuthorityFingerprint()
KeyCertificategetAuthorityFingerprint in interface KeyCertificatepublic TorPublicKey getAuthorityIdentityKey()
KeyCertificategetAuthorityIdentityKey in interface KeyCertificatepublic TorPublicKey getAuthoritySigningKey()
KeyCertificategetAuthoritySigningKey in interface KeyCertificatepublic Timestamp getKeyPublishedTime()
KeyCertificategetKeyPublishedTime in interface KeyCertificatepublic Timestamp getKeyExpiryTime()
KeyCertificategetKeyExpiryTime in interface KeyCertificatepublic boolean isExpired()
KeyCertificatetrue if the current time is past the key
expiry time of this certificate.isExpired in interface KeyCertificatepublic String getRawDocumentData()
getRawDocumentData in interface Documentpublic ByteBuffer getRawDocumentBytes()
getRawDocumentBytes in interface DocumentCopyright © 2015. All rights reserved.