--- layout: docs page_title: Domain Model - Credentials description: |- The anatomy of a Boundary credential --- # Credentials A credential is a data structure containing one or more secrets that binds an identity to a set of permissions or capabilities on a [host][] for a [session][]. ## Attributes ## Credential types Optionally, credentials can be typed to indicate compliance with a specific format. For example, Boundary allows for `username_password` credentials that contain the following fields: - `username` - The username field assocaited with the credential. - `password` - The password field assocaited with the credential. ## Referenced By - [Credential Store][] - [Credential Library][] - [Session][] [credential library]: /docs/concepts/domain-model/credential-libraries [credential libraries]: /docs/concepts/domain-model/credential-libraries [credential store]: /docs/concepts/domain-model/credential-stores [credential stores]: /docs/concepts/domain-model/credential-stores [host]: /docs/concepts/domain-model/hosts [session]: /docs/concepts/domain-model/sessions