Class ClaimBuilder.ImmutableClaim

java.lang.Object
org.opendaylight.aaa.tokenauthrealm.auth.ClaimBuilder.ImmutableClaim
All Implemented Interfaces:
Serializable, Claim
Enclosing class:
ClaimBuilder

protected static class ClaimBuilder.ImmutableClaim extends Object implements Claim, Serializable
See Also:
  • Field Details

  • Constructor Details

    • ImmutableClaim

      protected ImmutableClaim(ClaimBuilder base)
  • Method Details

    • clientId

      public String clientId()
      Description copied from interface: Claim
      Get the id of the authorized client. If the id is an empty string, it means that the client is anonymous.
      Specified by:
      clientId in interface Claim
      Returns:
      id of the authorized client, or empty string if anonymous
    • userId

      public String userId()
      Description copied from interface: Claim
      Get the user id. User IDs are system-created.
      Specified by:
      userId in interface Claim
      Returns:
      unique user id
    • user

      public String user()
      Description copied from interface: Claim
      Get the user name. User names are externally created.
      Specified by:
      user in interface Claim
      Returns:
      unique user name
    • domain

      public String domain()
      Description copied from interface: Claim
      Get the fully-qualified domain name. Domain names are externally created.
      Specified by:
      domain in interface Claim
      Returns:
      unique domain name, or empty string for a claim tied to no domain
    • roles

      public Set<String> roles()
      Description copied from interface: Claim
      Get a set of user roles. Roles are externally created.
      Specified by:
      roles in interface Claim
      Returns:
      set of user roles
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object