001package com.nimbusds.oauth2.sdk.client; 002 003 004import com.nimbusds.oauth2.sdk.ErrorObject; 005import com.nimbusds.oauth2.sdk.http.HTTPResponse; 006 007 008/** 009 * OAuth 2.0 client registration errors. 010 */ 011public final class RegistrationError { 012 013 014 /** 015 * Client registration: The value of one or more {@code redirect_uris} 016 * is invalid. 017 */ 018 public static final ErrorObject INVALID_REDIRECT_URI = 019 new ErrorObject("invalid_redirect_uri", "Invalid redirection URI(s)", HTTPResponse.SC_BAD_REQUEST); 020 021 022 /** 023 * Client registration: The value of one of the client meta data fields 024 * is invalid and the server has rejected this request. Note that an 025 * authorisation server may choose to substitute a valid value for any 026 * requested parameter of a client's meta data. 027 */ 028 public static final ErrorObject INVALID_CLIENT_METADATA = 029 new ErrorObject("invalid_client_metadata", "Invalid client metadata field", HTTPResponse.SC_BAD_REQUEST); 030 031 032 /** 033 * Prevents public instantiation. 034 */ 035 private RegistrationError() { } 036}