RPKI Engine  1.0
Public Member Functions | Public Attributes | Static Public Attributes
rpki::rpkid::child_cert_obj Class Reference
Inheritance diagram for rpki::rpkid::child_cert_obj:
Inheritance graph
Collaboration diagram for rpki::rpkid::child_cert_obj:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def ca_detail
def child
def fetch
def published_callback
def reissue
def revoke
def uri
def uri_tail

Public Attributes

 ca_detail_id
 cert
 child_id
 gctx
 published

Static Public Attributes

tuple sql_template

Detailed Description

Certificate that has been issued to a child.

Definition at line 1099 of file rpki/rpkid.py.


Constructor & Destructor Documentation

def rpki::rpkid::child_cert_obj::__init__ (   self,
  gctx = None,
  child_id = None,
  ca_detail_id = None,
  cert = None 
)
Initialize a child_cert_obj.

Definition at line 1113 of file rpki/rpkid.py.


Member Function Documentation

def rpki::rpkid::child_cert_obj::ca_detail (   self)
def rpki::rpkid::child_cert_obj::child (   self)
Fetch child object to which this child_cert object links.

Definition at line 1127 of file rpki/rpkid.py.

References child_id, rpki::rpkid::ca_obj::gctx, rpki::rpkid::ca_detail_obj::gctx, and gctx.

Referenced by reissue().

Here is the caller graph for this function:

def rpki::rpkid::child_cert_obj::fetch (   cls,
  gctx = None,
  child = None,
  ca_detail = None,
  ski = None,
  unique = False 
)
Fetch all child_cert objects matching a particular set of
parameters.  This is a wrapper to consolidate various queries that
would otherwise be inline SQL WHERE expressions.  In most cases
code calls this indirectly, through methods in other classes.

Definition at line 1252 of file rpki/rpkid.py.

def rpki::rpkid::child_cert_obj::published_callback (   self,
  pdu 
)
Publication callback: check result and mark published.

Definition at line 1284 of file rpki/rpkid.py.

References published, and rpki::sql::sql_persistent::sql_mark_dirty().

Referenced by rpki::rpkid::roa_obj::generate(), and rpki::rpkid::ghostbuster_obj::generate().

Here is the call graph for this function:

Here is the caller graph for this function:

def rpki::rpkid::child_cert_obj::reissue (   self,
  ca_detail,
  publisher,
  resources = None,
  sia = None,
  force = False 
)
Reissue an existing child cert, reusing the public key.  If the
child cert we would generate is identical to the one we already
have, we just return the one we already have.  If we have to
revoke the old child cert when generating the new one, we have to
generate a new child_cert_obj, so calling code that needs the
updated child_cert_obj must use the return value from this method.

Definition at line 1170 of file rpki/rpkid.py.

References ca_detail(), child(), rpki::rcynic::rcynic_certificate::ski, rpki::rcynic::rcynic_roa::ski, rpki::rcynic::rcynic_ghostbuster::ski, rpki::up_down::revoke_syntax::ski, and rpki::up_down::revoke_pdu::ski.

Here is the call graph for this function:

def rpki::rpkid::child_cert_obj::revoke (   self,
  publisher,
  generate_crl_and_manifest = False 
)
Revoke a child cert.

Definition at line 1154 of file rpki/rpkid.py.

References ca_detail(), cert, rpki::sql::sql_persistent::sql_delete(), and uri().

Referenced by rpki::rpkid::roa_obj::regenerate(), and rpki::rpkid::ghostbuster_obj::regenerate().

Here is the call graph for this function:

Here is the caller graph for this function:

def rpki::rpkid::child_cert_obj::uri (   self)
def rpki::rpkid::child_cert_obj::uri_tail (   self)
Return the tail (filename) portion of the URI for this child_cert.

Definition at line 1141 of file rpki/rpkid.py.

Referenced by uri(), rpki::rpkid::roa_obj::uri(), and rpki::rpkid::ghostbuster_obj::uri().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 1115 of file rpki/rpkid.py.

Referenced by child(), and rpki::left_right::child_elt::serve_up_down().

Reimplemented from rpki::sql::sql_persistent.

Definition at line 1115 of file rpki/rpkid.py.

Referenced by rpki::left_right::data_elt::bsc(), rpki::left_right::self_elt::bscs(), ca_detail(), rpki::rpkid::revoked_cert_obj::ca_detail(), rpki::rpkid::roa_obj::ca_detail(), rpki::rpkid::ghostbuster_obj::ca_detail(), rpki::left_right::child_elt::ca_from_class_name(), rpki::left_right::repository_elt::call_pubd(), rpki::left_right::parent_elt::cas(), child(), rpki::left_right::self_elt::children(), rpki::left_right::bsc_elt::children(), rpki::left_right::child_elt::fetch_child_certs(), rpki::left_right::self_elt::ghostbusters(), rpki::left_right::data_elt::make_reply_clone_hook(), rpki::left_right::self_elt::parents(), rpki::left_right::bsc_elt::parents(), rpki::left_right::repository_elt::parents(), rpki::left_right::child_elt::parents(), rpki::left_right::parent_elt::query_up_down(), rpki::left_right::self_elt::repositories(), rpki::left_right::bsc_elt::repositories(), rpki::left_right::parent_elt::repository(), rpki::left_right::self_elt::roas(), rpki::left_right::data_elt::self(), rpki::rpkid::roa_obj::self(), rpki::rpkid::ghostbuster_obj::self(), rpki::left_right::list_published_objects_elt::serve_dispatch(), rpki::left_right::list_received_resources_elt::serve_dispatch(), rpki::left_right::data_elt::serve_fetch_all(), rpki::publication::client_elt::serve_fetch_all(), rpki::left_right::self_elt::serve_fetch_all(), rpki::left_right::data_elt::serve_fetch_one_maybe(), rpki::publication::config_elt::serve_fetch_one_maybe(), rpki::publication::client_elt::serve_fetch_one_maybe(), rpki::left_right::self_elt::serve_fetch_one_maybe(), rpki::left_right::data_elt::serve_pre_save_hook(), rpki::publication::config_elt::serve_set(), rpki::left_right::child_elt::serve_up_down(), rpki::sql::sql_persistent::sql_delete(), rpki::rpkid::roa_obj::sql_fetch_hook(), rpki::sql::sql_persistent::sql_is_dirty(), rpki::sql::sql_persistent::sql_store(), rpki::left_right::self_elt::update_ghostbusters(), rpki::left_right::self_elt::update_roas(), and rpki::publication::publication_object_elt::uri_to_filename().

Initial value:
rpki.sql.template(
    "child_cert",
    "child_cert_id",
    ("cert", rpki.x509.X509),
    "child_id",
    "ca_detail_id",
    "ski",
    ("published", rpki.sundial.datetime))

Definition at line 1104 of file rpki/rpkid.py.

Referenced by rpki::xml_utils::data_elt::serve_create(), rpki::sql::sql_persistent::sql_decode(), rpki::sql::sql_persistent::sql_delete(), rpki::sql::sql_persistent::sql_encode(), and rpki::sql::sql_persistent::sql_store().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties