001package com.nimbusds.oauth2.sdk.id; 002 003 004import net.jcip.annotations.Immutable; 005 006 007/** 008 * Version identifier for an OAuth 2.0 client software. 009 * 010 * <p>Related specifications: 011 * 012 * <ul> 013 * <li>OAuth 2.0 Dynamic Client Registration Protocol 014 * (draft-ietf-oauth-dyn-reg-17), section 2. 015 * </ul> 016 */ 017@Immutable 018public final class SoftwareVersion extends Identifier { 019 020 021 /** 022 * Creates a new OAuth 2.0 client software version identifier with the 023 * specified value. 024 * 025 * @param value The software version identifier value. Must not be 026 * {@code null} or empty string. 027 */ 028 public SoftwareVersion(final String value) { 029 030 super(value); 031 } 032 033 034 @Override 035 public boolean equals(final Object object) { 036 037 return object instanceof SoftwareVersion && 038 this.toString().equals(object.toString()); 039 } 040}