001package com.nimbusds.oauth2.sdk.id; 002 003 004import net.jcip.annotations.Immutable; 005 006 007/** 008 * Authorised party. 009 */ 010@Immutable 011public final class AuthorizedParty extends Identifier { 012 013 014 /** 015 * Creates a new authorised party identifier with the specified value. 016 * 017 * @param value The authorised party value. Must not be {@code null} 018 * or empty string. 019 */ 020 public AuthorizedParty(final String value) { 021 022 super(value); 023 } 024 025 026 @Override 027 public boolean equals(final Object object) { 028 029 return object instanceof AuthorizedParty && 030 this.toString().equals(object.toString()); 031 } 032}