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 1101 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 1115 of file rpki/rpkid.py.


Member Function Documentation

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

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

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

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

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 1254 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 1286 of file rpki/rpkid.py.

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 1172 of file rpki/rpkid.py.

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

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

def rpki.rpkid.child_cert_obj.uri (   self)
Return the publication URI for this child_cert.

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

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

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


Member Data Documentation

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

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

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

Reimplemented from rpki.sql.sql_persistent.

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

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

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 1106 of file rpki/rpkid.py.


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