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