# Class LLSecurityContext.Builder

java.lang.Object
com.io7m.looseleaf.security.LLSecurityContext.Builder

Enclosing class:
  `LLSecurityContext`

public static final class LLSecurityContext.Builder extends Object
A mutable security context builder.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `LLSecurityContext.Builder`
  `addRole(LLRole role)`
  Add a role to the context.
  `LLSecurityContext.Builder`
  `addUser(LLUserName userName, LLPassword password, List<LLRoleName> roleNames)`
  Add a user to the context.
  `LLSecurityContext`
  `build()`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### addUser

    public LLSecurityContext.Builder addUser(LLUserName userName, LLPassword password, List<LLRoleName> roleNames)
    Add a user to the context.
    Parameters:
      `userName` - The name
      `password` - The password
      `roleNames` - The user's roles
    Returns:
      this

  - ### addRole

    public LLSecurityContext.Builder addRole(LLRole role)
    Add a role to the context.
    Parameters:
      `role` - The role
    Returns:
      this

  - ### build

    public LLSecurityContext build()
    Returns:
      A complete security context