Models
Models for the django-e2ee-framework app.
Models:
|
A key that is used for encrypting content in the database. |
|
The secret of an encryption key, encrypted with a users master key. |
|
A public key for a user that is used for encryption. |
|
The encrypted private key for a |
|
An encrypted private key for a |
Functions:
|
Deactivate the notification subscriptions for the session. |
|
Try importing a public key with cryptography |
- class django_e2ee.models.EncryptionKey(*args, **kwargs)
Bases:
Model
A key that is used for encrypting content in the database.
Miscellaneous:
Model Fields:
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
A wrapper for a deferred-loading field.
Attributes:
Accessor to the related objects manager on the reverse side of a many-to-one relation.
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- created_by
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- created_by_id
- encryptionkeysecret_set
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- master_keys
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- objects = <django.db.models.manager.Manager object>
- uuid
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class django_e2ee.models.EncryptionKeySecret(*args, **kwargs)
Bases:
Model
The secret of an encryption key, encrypted with a users master key.
Miscellaneous:
Model Fields:
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
A wrapper for a deferred-loading field.
A wrapper for a deferred-loading field.
A wrapper for a deferred-loading field.
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
Attributes:
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- encrypted_with
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- encrypted_with_id
- encryption_key
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- encryption_key_id
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- secret
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- signature
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- signed_by
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- signed_by_id
- class django_e2ee.models.MasterKey(*args, **kwargs)
Bases:
Model
A public key for a user that is used for encryption.
Miscellaneous:
Attributes:
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
Accessor to the related objects manager on the reverse side of a many-to-one relation.
Accessor to the related objects manager on the reverse side of a many-to-one relation.
The pubkey loaded via cryptography
Accessor to the related objects manager on the reverse side of a many-to-one relation.
Accessor to the related objects manager on the reverse side of a many-to-one relation.
The pubkey loaded via cryptography
Model Fields:
A wrapper for a deferred-loading field.
A wrapper for a deferred-loading field.
Accessor to the related object on the forward side of a one-to-one relation.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- encryptionkey_set
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- encryptionkeysecret_set
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- masterkeysecret_set
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- objects = <django.db.models.manager.Manager object>
- pubkey
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property pubkey_loaded
The pubkey loaded via cryptography
- sessionkey_set
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- signed_secrets
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- signing_pubkey
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property signing_pubkey_loaded
The pubkey loaded via cryptography
- user
Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is aForwardOneToOneDescriptor
instance.
- user_id
- class django_e2ee.models.MasterKeySecret(*args, **kwargs)
Bases:
Model
The encrypted private key for a
MasterKey
Miscellaneous:
Model Fields:
A wrapper for a deferred-loading field.
A wrapper for a deferred-loading field.
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
A wrapper for a deferred-loading field.
A wrapper for a deferred-loading field.
A wrapper for a deferred-loading field.
A wrapper for a deferred-loading field.
Attributes:
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- identifier
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- iv
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- master_key
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- master_key_id
- objects = <django.db.models.manager.Manager object>
- salt
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- secret
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- signing_secret
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- uuid
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class django_e2ee.models.SessionKey(*args, **kwargs)
Bases:
Model
An encrypted private key for a
MasterKey
for one session.Miscellaneous:
Methods:
Model Fields:
A wrapper for a deferred-loading field.
A wrapper for a deferred-loading field.
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
A wrapper for a deferred-loading field.
Accessor to the related object on the forward side of a one-to-one relation.
A wrapper for a deferred-loading field.
A wrapper for a deferred-loading field.
Attributes:
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- get_absolute_url()
- ignore
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- iv
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- master_key
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- master_key_id
- objects = <django.db.models.manager.Manager object>
- secret
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- session
Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is aForwardOneToOneDescriptor
instance.
- session_id
- session_secret
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- signing_secret
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- django_e2ee.models.delete_session_key(request, **kwargs)
Deactivate the notification subscriptions for the session.