public static OAuth20ResponseTypes getResponseType ( final J2EContext context ) { val responseType = context . getRequestParameter ( OAuth20Constants . RESPONSE_TYPE ) ; val type = Arrays . stream ( OAuth20ResponseTypes . values ( ) ) . filter ( t -> t . getType ( ) . equalsIgnoreCase ( responseType ) ) . findFirst ( ) . orElse ( OAuth20ResponseTypes . CODE ) ; LOGGER . debug ( "OAuth response type is [{}]" , type ) ; return type ; }
Gets response type .