@staticmethod
def secrets_store(client, name=None, payload=None, algorithm=None,
    bit_length=None, secret_type=None, mode=None, expiration=None):
    """Create and Store a secret in Barbican.

        :param client: the Barbican client
        :type client: barbicanclient.client

        :param name: A friendly name for the Secret
        :type name: string

        :param payload: The unencrypted secret data
        :type payload: string

        :param algorithm: The algorithm associated with this secret key
        :type algorithm: string

        :param bit_length: The bit length of this secret key
        :type bit_length: int

        :param secret_type: The secret type for this secret key
        :type secret_type: string

         :param mode: The algorithm mode used with this secret keybit_length:
        :type mode: string

        :param expiration: The expiration time of the secret in ISO 8601 format
        :type expiration: string

        :returns: A new Secret object
        :rtype: class:`barbicanclient.secrets.Secret'
        """
    entity = client.secrets.create(name, payload, algorithm, bit_length,
        secret_type, mode, expiration)
    entity.store()
    return entity._get_formatted_entity()
