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         * Client registration: The software statement presented is invalid.
034         */
035        public static final ErrorObject INVALID_SOFTWARE_STATEMENT =
036                new ErrorObject("invalid_software_statement", "Invalid software statement", HTTPResponse.SC_BAD_REQUEST);
037
038
039        /**
040         * Client registration: The software statement presented is not
041         * approved for use by this authorisation server.
042         */
043        public static final ErrorObject UNAPPROVED_SOFTWARE_STATEMENT =
044                new ErrorObject("unapproved_software_statement", "Unapproved software statement", HTTPResponse.SC_BAD_REQUEST);
045
046        
047        /**
048         * Prevents public instantiation.
049         */
050        private RegistrationError() { }
051}