com.nimbusds.oauth2.sdk.id.SoftwareVersion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oauth2-oidc-sdk Show documentation
Show all versions of oauth2-oidc-sdk Show documentation
OAuth 2.0 SDK with OpenID Connection extensions for developing client
and server applications.
package com.nimbusds.oauth2.sdk.id;
import net.jcip.annotations.Immutable;
/**
* Version identifier for an OAuth 2.0 client software.
*
* Related specifications:
*
*
* - OAuth 2.0 Dynamic Client Registration Protocol
* (draft-ietf-oauth-dyn-reg-20), section 2.
*
*/
@Immutable
public final class SoftwareVersion extends Identifier {
/**
* Creates a new OAuth 2.0 client software version identifier with the
* specified value.
*
* @param value The software version identifier value. Must not be
* {@code null} or empty string.
*/
public SoftwareVersion(final String value) {
super(value);
}
@Override
public boolean equals(final Object object) {
return object instanceof SoftwareVersion &&
this.toString().equals(object.toString());
}
}