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