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