src/fedoidcmsg/entity.py
def update_metadata_statement(self, metadata_statement, receiver='',
                                  federation=None, context=''):
        """
        Update a metadata statement by:
         * adding signed metadata statements or uris pointing to signed
           metadata statements.
         * adding the entities signing keys
         * create metadata statements one per signed metadata statement or uri
           sign these and add them to the metadata statement

        :param metadata_statement: A :py:class:`fedoidcmsg.MetadataStatement`
            instance
        :param receiver: The intended receiver of the metadata statement
        :param federation:
        :param context:
        :return: An augmented metadata statement
        """
        self.add_sms_spec_to_request(metadata_statement, federation=federation,
                                     context=context)
        self.add_signing_keys(metadata_statement)
        metadata_statement = self.self_sign(metadata_statement, receiver)
        # These are unprotected here so can as well be removed
        del metadata_statement['signing_keys']
        return metadata_statement
def update_metadata_statement(self, metadata_statement, receiver='',
                                  federation=None, context=''):
        """
        Update a metadata statement by:
         * adding signed metadata statements or uris pointing to signed
           metadata statements.
         * adding the entities signing keys
         * create metadata statements one per signed metadata statement or uri
           sign these and add them to the metadata statement

        :param metadata_statement: A :py:class:`fedoidcmsg.MetadataStatement`
            instance
        :param receiver: The intended receiver of the metadata statement
        :param federation:
        :param context:
        :return: An augmented metadata statement
        """
        self.add_sms_spec_to_request(metadata_statement, federation=federation,
                                     context=context)
        self.add_signing_keys(metadata_statement)
        metadata_statement = self.self_sign(metadata_statement, receiver)
        # These are unprotected here so can as well be removed
        del metadata_statement['signing_keys']
        return metadata_statement
def update_metadata_statement ( self , metadata_statement , receiver = '' , federation = None , context = '' ) : self . add_sms_spec_to_request ( metadata_statement , federation = federation , context = context ) self . add_signing_keys ( metadata_statement ) metadata_statement = self . self_sign ( metadata_statement , receiver ) # These are unprotected here so can as well be removed del metadata_statement [ 'signing_keys' ] return metadata_statement
Update a metadata statement by:
         * adding signed metadata statements or uris pointing to signed
           metadata statements.
         * adding the entities signing keys
         * create metadata statements one per signed metadata statement or uri
           sign these and add them to the metadata statement

        :param metadata_statement: A :py:class:`fedoidcmsg.MetadataStatement`
            instance
        :param receiver: The intended receiver of the metadata statement
        :param federation:
        :param context:
        :return: An augmented metadata statement
Update a metadata statement by : * adding signed metadata statements or uris pointing to signed metadata statements . * adding the entities signing keys * create metadata statements one per signed metadata statement or uri sign these and add them to the metadata statement