RPKI Engine
1.0
|
Public Member Functions | |
def | __cmp__ |
def | __init__ |
def | check |
def | check_auto_update |
def | clear |
def | dumpasn1 |
def | empty |
def | from_sql |
def | gAKI |
def | get_3779resources |
def | get_AIA |
def | get_aia_uri |
def | get_AKI |
def | get_Base64 |
def | get_basicConstraints |
def | get_DER |
def | get_PEM |
def | get_SIA |
def | get_sia_directory_uri |
def | get_sia_manifest_uri |
def | get_SKI |
def | gSKI |
def | hAKI |
def | hSKI |
def | is_CA |
def | set |
def | to_sql |
Public Attributes | |
DER | |
DER value of this object. | |
filename | |
timestamp | |
Static Public Attributes | |
tuple | formats = ("DER",) |
Formats supported in this object. | |
tuple | other_clear = () |
Other attributes that self.clear() should whack. | |
pem_converter = None | |
PEM converter for this object. |
def rpki::x509::DER_object::__init__ | ( | self, | |
kw | |||
) |
Initialize a DER_object.
Definition at line 155 of file x509.py.
References clear(), rpki::async::timer::clear(), rpki::async::timer::set(), and set().
def rpki::x509::DER_object::__cmp__ | ( | self, | |
other | |||
) |
def rpki::x509::DER_object::check | ( | self | ) |
Perform basic checks on a DER object.
Definition at line 222 of file x509.py.
References check_auto_update(), empty(), and rpki::resource_set::resource_bag::empty().
Referenced by get_DER().
def rpki::x509::DER_object::check_auto_update | ( | self | ) |
Check for updates to a DER object that auto-updates from a file.
Definition at line 202 of file x509.py.
References clear(), rpki::async::timer::clear(), DER, rpki::rcynic::rcynic_object::filename, rpki::config::parser::filename, filename, rpki::myrpki::csv_reader::filename, rpki::myrpki::csv_writer::filename, and timestamp.
Referenced by check().
def rpki::x509::DER_object::clear | ( | self | ) |
Make this object empty.
Definition at line 146 of file x509.py.
Referenced by __init__(), and check_auto_update().
def rpki::x509::DER_object::dumpasn1 | ( | self | ) |
Pretty print an ASN.1 DER object using cryptlib dumpasn1 tool. Use a temporary file rather than popen4() because dumpasn1 uses seek() when decoding ASN.1 content nested in OCTET STRING values.
Definition at line 385 of file x509.py.
References get_DER().
Referenced by rpki::x509::CMS_object::verify().
def rpki::x509::DER_object::empty | ( | self | ) |
def rpki::x509::DER_object::from_sql | ( | cls, | |
x | |||
) |
def rpki::x509::DER_object::gAKI | ( | self | ) |
def rpki::x509::DER_object::get_3779resources | ( | self | ) |
Get RFC 3779 resources as rpki.resource_set objects. Only works for subclasses that support getExtensions().
Definition at line 360 of file x509.py.
References rpki::x509::X509::get_POWpkix(), rpki::x509::PKCS10::get_POWpkix(), rpki::x509::CRL::get_POWpkix(), and rpki::x509::X509::getNotAfter().
def rpki::x509::DER_object::get_AIA | ( | self | ) |
Get the SIA extension from this object. Only works for subclasses that support getExtension().
Definition at line 331 of file x509.py.
References rpki::x509::X509::get_POWpkix(), rpki::x509::PKCS10::get_POWpkix(), and rpki::x509::CRL::get_POWpkix().
Referenced by get_aia_uri().
def rpki::x509::DER_object::get_aia_uri | ( | self | ) |
Get AIA (id-ad-caIssuers) URI from this object. Only works for subclasses that support getExtension().
Definition at line 338 of file x509.py.
References rpki::x509::_find_xia_uri(), and get_AIA().
def rpki::x509::DER_object::get_AKI | ( | self | ) |
Get the AKI extension from this object. Only works for subclasses that support getExtension().
Definition at line 295 of file x509.py.
References rpki::x509::X509::get_POWpkix(), rpki::x509::PKCS10::get_POWpkix(), and rpki::x509::CRL::get_POWpkix().
Referenced by gAKI(), and hAKI().
def rpki::x509::DER_object::get_Base64 | ( | self | ) |
Get the Base64 encoding of the DER value of this object.
Definition at line 240 of file x509.py.
References rpki::x509::base64_with_linebreaks(), and get_DER().
def rpki::x509::DER_object::get_basicConstraints | ( | self | ) |
Get the basicConstraints extension from this object. Only works for subclasses that support getExtension().
Definition at line 345 of file x509.py.
References rpki::x509::X509::get_POWpkix(), rpki::x509::PKCS10::get_POWpkix(), and rpki::x509::CRL::get_POWpkix().
Referenced by is_CA().
def rpki::x509::DER_object::get_DER | ( | self | ) |
Get the DER value of this object. Subclasses will almost certainly override this method.
Reimplemented in rpki::x509::CRL, rpki::x509::CMS_object, rpki::x509::RSApublic, rpki::x509::RSA, rpki::x509::PKCS10, and rpki::x509::X509.
Definition at line 229 of file x509.py.
Referenced by __cmp__(), rpki::x509::XML_CMS_object::dump_to_disk(), dumpasn1(), get_Base64(), get_PEM(), rpki::x509::RSApublic::get_SKI(), to_sql(), rpki::x509::CMS_object::verify(), and rpki::x509::XML_CMS_object::wrap().
def rpki::x509::DER_object::get_PEM | ( | self | ) |
def rpki::x509::DER_object::get_SIA | ( | self | ) |
Get the SIA extension from this object. Only works for subclasses that support getExtension().
Definition at line 310 of file x509.py.
References rpki::x509::X509::get_POWpkix(), rpki::x509::PKCS10::get_POWpkix(), and rpki::x509::CRL::get_POWpkix().
Referenced by get_sia_directory_uri(), and get_sia_manifest_uri().
def rpki::x509::DER_object::get_sia_directory_uri | ( | self | ) |
Get SIA directory (id-ad-caRepository) URI from this object. Only works for subclasses that support getExtension().
Definition at line 317 of file x509.py.
References rpki::x509::_find_xia_uri(), and get_SIA().
def rpki::x509::DER_object::get_sia_manifest_uri | ( | self | ) |
Get SIA manifest (id-ad-rpkiManifest) URI from this object. Only works for subclasses that support getExtension().
Definition at line 324 of file x509.py.
References rpki::x509::_find_xia_uri(), and get_SIA().
def rpki::x509::DER_object::get_SKI | ( | self | ) |
Get the SKI extension from this object. Only works for subclasses that support getExtension().
Reimplemented in rpki::x509::RSApublic, and rpki::x509::RSA.
Definition at line 303 of file x509.py.
References rpki::x509::X509::get_POWpkix(), rpki::x509::PKCS10::get_POWpkix(), and rpki::x509::CRL::get_POWpkix().
Referenced by rpki::x509::X509::cross_certify(), gSKI(), hSKI(), and rpki::x509::X509::issue().
def rpki::x509::DER_object::gSKI | ( | self | ) |
Calculate g(SKI) for this object. Only work for subclasses that implement get_SKI().
Definition at line 273 of file x509.py.
References get_SKI(), and rpki::up_down::revoke_pdu::get_SKI().
def rpki::x509::DER_object::hAKI | ( | self | ) |
def rpki::x509::DER_object::hSKI | ( | self | ) |
Return hexadecimal string representation of SKI for this object. Only work for subclasses that implement get_SKI().
Definition at line 265 of file x509.py.
References get_SKI(), and rpki::up_down::revoke_pdu::get_SKI().
def rpki::x509::DER_object::is_CA | ( | self | ) |
Return True if and only if object has the basicConstraints extension and its cA value is true.
Definition at line 352 of file x509.py.
References get_basicConstraints().
Referenced by rpki::x509::CMS_object::verify().
def rpki::x509::DER_object::set | ( | self, | |
kw | |||
) |
Set this object by setting one of its known formats. This method only allows one to set one format at a time. Subsequent calls will clear the object first. The point of all this is to let the object's internal converters handle mustering the object into whatever format you need at the moment.
Definition at line 163 of file x509.py.
Referenced by __init__().
def rpki::x509::DER_object::to_sql | ( | self | ) |
DER value of this object.
Reimplemented in rpki::x509::CRL, rpki::x509::CMS_object, rpki::x509::RSApublic, rpki::x509::RSA, rpki::x509::PKCS10, and rpki::x509::X509.
Definition at line 170 of file x509.py.
Referenced by check_auto_update(), and get_DER().
Definition at line 148 of file x509.py.
Referenced by check_auto_update(), and rpki::rcynic::validation_status_element::get_obj().
tuple rpki::x509::DER_object::formats = ("DER",) [static] |
Formats supported in this object.
Reimplemented in rpki::x509::CRL, rpki::x509::CMS_object, rpki::x509::RSApublic, rpki::x509::RSA, rpki::x509::PKCS10, and rpki::x509::X509.
Definition at line 129 of file x509.py.
Referenced by empty().
tuple rpki::x509::DER_object::other_clear = () [static] |
Other attributes that self.clear() should whack.
Reimplemented in rpki::x509::CMS_object.
rpki::x509::DER_object::pem_converter = None [static] |
PEM converter for this object.
Reimplemented in rpki::x509::CRL, rpki::x509::Ghostbuster, rpki::x509::ROA, rpki::x509::SignedManifest, rpki::x509::CMS_object, rpki::x509::RSApublic, rpki::x509::RSA, rpki::x509::PKCS10, and rpki::x509::X509.
Definition at line 148 of file x509.py.
Referenced by check_auto_update().