Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
idna / lib / python2.7 / site-packages / castellan / key_manager / key_manager.pyc
Size: Mime:
ó
͍EYc@sJdZddlZddlZejejƒdefd„ƒYƒZdS(s
Key manager API
iÿÿÿÿNt
KeyManagercBsŒeZdZejd„ƒZejddd„ƒZejddd„ƒZejdd„ƒZ	eje
d„ƒZejd„ƒZRS(s¶Base Key Manager Interface

    A Key Manager is responsible for managing encryption keys for volumes. A
    Key Manager is responsible for creating, reading, and deleting keys.
    cCsdS(s¥Instantiate a KeyManager object.

        Creates a KeyManager object with implementation specific details
        obtained from the supplied configuration.
        N((tselft
configuration((sV/home/tvault/.virtenv/lib/python2.7/site-packages/castellan/key_manager/key_manager.pyt__init__!scCsdS(sêCreates a symmetric key.

        This method creates a symmetric key and returns the key's UUID. If the
        specified context does not permit the creation of keys, then a
        NotAuthorized exception should be raised.
        N((Rtcontextt	algorithmtlengtht
expirationtname((sV/home/tvault/.virtenv/lib/python2.7/site-packages/castellan/key_manager/key_manager.pyt
create_key*s	cCsdS(s9Creates an asymmetric key pair.

        This method creates an asymmetric key pair and returns the pair of key
        UUIDs. If the specified context does not permit the creation of keys,
        then a NotAuthorized exception should be raised. The order of the UUIDs
        will be (private, public).
        N((RRRRRR((sV/home/tvault/.virtenv/lib/python2.7/site-packages/castellan/key_manager/key_manager.pytcreate_key_pair5s
cCsdS(s7Stores a managed object with the key manager.

        This method stores the specified managed object and returns its UUID
        that identifies it within the key manager. If the specified context
        does not permit the creation of keys, then a NotAuthorized exception
        should be raised.
        N((RRtmanaged_objectR((sV/home/tvault/.virtenv/lib/python2.7/site-packages/castellan/key_manager/key_manager.pytstoreAs	cCsdS(s#Retrieves the specified managed object.

        Implementations should verify that the caller has permissions to
        retrieve the managed object by checking the context object passed in
        as context. If the user lacks permission then a NotAuthorized
        exception is raised.

        If the caller requests only metadata, then the object that is
        returned will contain only the secret metadata and no secret bytes.

        If the specified object does not exist, then a KeyError should be
        raised. Implementations should preclude users from discerning the
        UUIDs of objects that belong to other users by repeatedly calling
        this method. That is, objects that belong to other users should be
        considered "non-existent" and completely invisible.
        N((RRtmanaged_object_idt
metadata_only((sV/home/tvault/.virtenv/lib/python2.7/site-packages/castellan/key_manager/key_manager.pytgetLscCsdS(s„Deletes the specified managed object.

        Implementations should verify that the caller has permission to delete
        the managed object by checking the context object (context). A
        NotAuthorized exception should be raised if the caller lacks
        permission.

        If the specified object does not exist, then a KeyError should be
        raised. Implementations should preclude users from discerning the
        UUIDs of objects that belong to other users by repeatedly calling this
        method. That is, objects that belong to other users should be
        considered "non-existent" and completely invisible.
        N((RRR
((sV/home/tvault/.virtenv/lib/python2.7/site-packages/castellan/key_manager/key_manager.pytdelete`sN(
t__name__t
__module__t__doc__tabctabstractmethodRtNoneR	R
RtFalseRR(((sV/home/tvault/.virtenv/lib/python2.7/site-packages/castellan/key_manager/key_manager.pyRs		

(RRtsixt
add_metaclasstABCMetatobjectR(((sV/home/tvault/.virtenv/lib/python2.7/site-packages/castellan/key_manager/key_manager.pyt<module>s