':param message:
:param endpoint_index:
:return:'

def use_artifact(self, message, endpoint_index=0):

    message_handle = sha1(('%s' % message))
    message_handle.update(rndstr())
    mhd = message_handle.digest()
    saml_art = create_artifact(self.config.entityid, mhd, endpoint_index)
    self.artifact[saml_art] = message
    return saml_art
