rpki.rpki_engine.ca_obj Class Reference

Inherits rpki::sql::sql_persistent.

List of all members.

Public Member Functions

def ca_details
def check_for_updates
def construct_sia_uri
def create
def delete
def fetch_active
def fetch_deprecated
def fetch_issue_response_candidates
def fetch_pending
def fetch_revoked
def next_crl_number
def next_manifest_number
def next_serial_number
def parent
def rekey
def revoke

Public Attributes

 gctx
 parent_id
 parent_resource_class
 sia_uri

Static Public Attributes

int last_crl_sn = 0
int last_issued_sn = 0
int last_manifest_sn = 0
tuple sql_template

Detailed Description

Internal CA object.

Definition at line 309 of file rpki_engine.py.


Member Function Documentation

def rpki.rpki_engine.ca_obj.ca_details (   self  ) 
Fetch all ca_detail objects that link to this CA object.

Definition at line 331 of file rpki_engine.py.

def rpki.rpki_engine.ca_obj.check_for_updates (   self,
  parent,
  rc,
  cb,
  eb 
)
Parent has signaled continued existance of a resource class we
already knew about, so we need to check for an updated
certificate, changes in resource coverage, revocation and reissue
with the same key, etc.

Definition at line 372 of file rpki_engine.py.

def rpki.rpki_engine.ca_obj.construct_sia_uri (   self,
  parent,
  rc 
)
Construct the sia_uri value for this CA given configured
information and the parent's up-down protocol list_response PDU.

Definition at line 359 of file rpki_engine.py.

def rpki.rpki_engine.ca_obj.create (   cls,
  parent,
  rc,
  cb,
  eb 
)
Parent has signaled existance of a new resource class, so we need
to create and set up a corresponding CA object.

Definition at line 452 of file rpki_engine.py.

def rpki.rpki_engine.ca_obj.delete (   self,
  parent,
  callback 
)
The list of current resource classes received from parent does not
include the class corresponding to this CA, so we need to delete
it (and its little dog too...).

All certs published by this CA are now invalid, so need to
withdraw them, the CRL, and the manifest from the repository,
delete all child_cert and ca_detail records associated with this
CA, then finally delete this CA itself.

Definition at line 476 of file rpki_engine.py.

def rpki.rpki_engine.ca_obj.fetch_active (   self  ) 
Fetch the active ca_detail for this CA, if any.

Definition at line 339 of file rpki_engine.py.

def rpki.rpki_engine.ca_obj.fetch_deprecated (   self  ) 
Fetch deprecated ca_details for this CA, if any.

Definition at line 343 of file rpki_engine.py.

def rpki.rpki_engine.ca_obj.fetch_issue_response_candidates (   self  ) 
Fetch ca_details which are candidates for consideration when
processing an up-down issue_response PDU.

Definition at line 351 of file rpki_engine.py.

def rpki.rpki_engine.ca_obj.fetch_pending (   self  ) 
Fetch the pending ca_details for this CA, if any.

Definition at line 335 of file rpki_engine.py.

def rpki.rpki_engine.ca_obj.fetch_revoked (   self  ) 
Fetch revoked ca_details for this CA, if any.

Definition at line 347 of file rpki_engine.py.

def rpki.rpki_engine.ca_obj.next_crl_number (   self  ) 
Allocate a CRL serial number.

Definition at line 518 of file rpki_engine.py.

def rpki.rpki_engine.ca_obj.next_manifest_number (   self  ) 
Allocate a manifest serial number.

Definition at line 510 of file rpki_engine.py.

def rpki.rpki_engine.ca_obj.next_serial_number (   self  ) 
Allocate a certificate serial number.

Definition at line 502 of file rpki_engine.py.

def rpki.rpki_engine.ca_obj.parent (   self  ) 
Fetch parent object to which this CA object links.

Definition at line 327 of file rpki_engine.py.

def rpki.rpki_engine.ca_obj.rekey (   self,
  cb,
  eb 
)
Initiate a rekey operation for this ca.  Generate a new keypair.
Request cert from parent using new keypair.  Mark result as our
active ca_detail.  Reissue all child certs issued by this ca using
the new ca_detail.

Definition at line 526 of file rpki_engine.py.

def rpki.rpki_engine.ca_obj.revoke (   self,
  cb,
  eb 
)
Revoke deprecated ca_detail objects associated with this ca.

Definition at line 551 of file rpki_engine.py.


Member Data Documentation

Reimplemented from rpki.sql.sql_persistent.

Definition at line 459 of file rpki_engine.py.

Definition at line 323 of file rpki_engine.py.

Definition at line 324 of file rpki_engine.py.

Definition at line 325 of file rpki_engine.py.

Definition at line 460 of file rpki_engine.py.

Definition at line 461 of file rpki_engine.py.

Definition at line 383 of file rpki_engine.py.

Initial value:
rpki.sql.template(
    "ca",
    "ca_id",
    "last_crl_sn",
    ("next_crl_update", rpki.sundial.datetime),
    "last_issued_sn", "last_manifest_sn",
    ("next_manifest_update", rpki.sundial.datetime),
    "sia_uri", "parent_id", "parent_resource_class")

Definition at line 314 of file rpki_engine.py.


The documentation for this class was generated from the following file:

Generated on Tue Jan 12 07:56:02 2010 for RPKI Engine by  doxygen 1.6.1