METHOD_0 ( ) { java . util . Properties conf = new java . util . Properties ( ) ; conf . put ( IDENT_0 . IDENT_1 , "foo" ) ; conf . put ( ( ( IDENT_2 . IDENT_3 ) + STRING_0 ) , STRING_1 ) ; org . apache . hadoop . security . token . IDENT_4 . web . IDENT_2 IDENT_5 = new org . apache . hadoop . security . token . IDENT_4 . web . IDENT_6 . METHOD_1 ( ) ; try { IDENT_5 . METHOD_2 ( conf ) ; IDENT_5 . METHOD_3 ( conf ) ; org . apache . hadoop . security . token . IDENT_4 . web . IDENT_7 . IDENT_8 op = IDENT_9 ; javax . servlet . http . IDENT_10 request = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_10 . class ) ; javax . servlet . http . IDENT_11 response = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_11 . class ) ; org . mockito . Mockito . when ( request . METHOD_4 ( ) ) . thenReturn ( ( ( ( IDENT_7 . IDENT_12 ) + STRING_2 ) + ( op . toString ( ) ) ) ) ; org . mockito . Mockito . when ( request . METHOD_5 ( ) ) . thenReturn ( op . METHOD_6 ( ) ) ; org . apache . hadoop . security . authentication . server . IDENT_13 token = org . mockito . Mockito . mock ( org . apache . hadoop . security . authentication . server . IDENT_13 . class ) ; org . mockito . Mockito . when ( token . METHOD_7 ( ) ) . thenReturn ( STRING_3 ) ; final org . apache . commons . lang3 . mutable . IDENT_14 IDENT_15 = new org . apache . commons . lang3 . mutable . METHOD_8 ( ) ; java . io . IDENT_16 IDENT_17 = new java . io . METHOD_9 ( new java . io . StringWriter ( ) ) { @ org . apache . hadoop . security . token . IDENT_4 . web . Override public void close ( ) { IDENT_15 . setValue ( true ) ; super . close ( ) ; } @ org . apache . hadoop . security . token . IDENT_4 . web . Override public void write ( java . lang . String str ) { if ( IDENT_15 . METHOD_10 ( ) ) { throw new java . lang . RuntimeException ( STRING_4 ) ; } super . write ( str ) ; } } ; org . mockito . Mockito . when ( response . METHOD_11 ( ) ) . thenReturn ( IDENT_17 ) ; "<AssertPlaceHolder>" ; } finally { IDENT_5 . METHOD_12 ( ) ; } } METHOD_13 ( org . apache . hadoop . security . authentication . server . IDENT_13 , javax . servlet . http . IDENT_10 , javax . servlet . http . IDENT_11 ) { boolean IDENT_18 = true ; org . apache . hadoop . security . token . IDENT_4 . web . IDENT_2 . LOG . trace ( STRING_5 , request , token ) ; java . lang . String op = org . apache . hadoop . security . token . IDENT_4 . web . IDENT_19 . METHOD_14 ( request , IDENT_20 . IDENT_12 ) ; op = ( op != null ) ? org . apache . hadoop . util . StringUtils . METHOD_15 ( op ) : null ; if ( METHOD_16 ( request ) ) { org . apache . hadoop . security . token . IDENT_4 . web . IDENT_20 . IDENT_8 IDENT_21 = IDENT_20 . IDENT_8 . valueOf ( op ) ; if ( IDENT_21 . METHOD_6 ( ) . equals ( request . METHOD_5 ( ) ) ) { boolean IDENT_22 ; if ( ( IDENT_21 . METHOD_17 ( ) ) && ( token == null ) ) { token = IDENT_23 . METHOD_18 ( request , response ) ; org . apache . hadoop . security . token . IDENT_4 . web . IDENT_2 . LOG . trace ( STRING_6 , token ) ; if ( token == null ) { IDENT_18 = false ; IDENT_22 = false ; } else { IDENT_22 = true ; } } else { IDENT_22 = true ; } if ( IDENT_22 ) { org . apache . hadoop . security . IDENT_24 IDENT_25 = ( token != null ) ? org . apache . hadoop . security . IDENT_24 . METHOD_19 ( token . METHOD_7 ( ) ) : null ; java . lang . String IDENT_26 = org . apache . hadoop . security . token . IDENT_4 . web . IDENT_27 . METHOD_20 ( request ) ; if ( ( IDENT_25 != null ) && ( IDENT_26 != null ) ) { IDENT_25 = org . apache . hadoop . security . IDENT_24 . METHOD_21 ( IDENT_26 , IDENT_25 ) ; try { org . apache . hadoop . security . IDENT_28 . IDENT_29 . METHOD_22 ( IDENT_25 , request . METHOD_23 ( ) ) ; } catch ( org . apache . hadoop . security . METHOD_22 . IDENT_30 ex ) { org . apache . hadoop . util . IDENT_31 . METHOD_24 ( response , IDENT_11 . IDENT_32 , ex ) ; return false ; } } java . util . Map map = null ; switch ( IDENT_21 ) { case IDENT_9 : if ( IDENT_25 == null ) { throw new java . lang . IllegalStateException ( STRING_7 ) ; } java . lang . String IDENT_33 = org . apache . hadoop . security . token . IDENT_4 . web . IDENT_19 . METHOD_14 ( request , IDENT_20 . IDENT_34 ) ; java . lang . String service = org . apache . hadoop . security . token . IDENT_4 . web . IDENT_19 . METHOD_14 ( request , IDENT_20 . IDENT_35 ) ; try { org . apache . hadoop . security . token . IDENT_36 < ? > IDENT_37 = IDENT_38 . METHOD_25 ( IDENT_25 , IDENT_33 , service ) ; map = org . apache . hadoop . security . token . IDENT_4 . web . IDENT_2 . METHOD_26 ( IDENT_37 ) ; } catch ( java . io . IOException ex ) { throw new org . apache . hadoop . security . authentication . client . METHOD_27 ( ex . toString ( ) , ex ) ; } break ; case IDENT_39 : if ( IDENT_25 == null ) { throw new java . lang . IllegalStateException ( STRING_7 ) ; } java . lang . String IDENT_40 = org . apache . hadoop . security . token . IDENT_4 . web . IDENT_19 . METHOD_14 ( request , IDENT_20 . IDENT_41 ) ; if ( IDENT_40 == null ) { response . METHOD_28 ( IDENT_11 . IDENT_42 , java . text . IDENT_43 . format ( STRING_8 , IDENT_21 , IDENT_20 . IDENT_41 ) ) ; IDENT_18 = false ; } else { org . apache . hadoop . security . token . IDENT_36 < org . apache . hadoop . security . token . IDENT_4 . IDENT_44 > IDENT_45 = new org . apache . hadoop . security . token . METHOD_29 ( ) ; try { IDENT_45 . METHOD_30 ( IDENT_40 ) ; long IDENT_46 = IDENT_38 . METHOD_31 ( IDENT_45 , IDENT_25 . METHOD_32 ( ) ) ; map = new java . util . HashMap ( ) ; map . put ( STRING_9 , IDENT_46 ) ; } catch ( java . io . IOException ex ) { throw new org . apache . hadoop . security . authentication . client . METHOD_27 ( ex . toString ( ) , ex ) ; } } break ; case IDENT_47 : java . lang . String IDENT_48 = org . apache . hadoop . security . token . IDENT_4 . web . IDENT_19 . METHOD_14 ( request , IDENT_20 . IDENT_41 ) ; if ( IDENT_48 == null ) { response . METHOD_28 ( IDENT_11 . IDENT_42 , java . text . IDENT_43 . format ( STRING_8 , IDENT_21 , IDENT_20 . IDENT_41 ) ) ; IDENT_18 = false ; } else { org . apache . hadoop . security . token . METHOD_29 < org . apache . hadoop . security . token . IDENT_4 . IDENT_44 > IDENT_45 = new org . apache . hadoop . security . token . METHOD_29 ( ) ; try { IDENT_45 . METHOD_30 ( IDENT_48 ) ; IDENT_38 . METHOD_33 ( IDENT_45 , ( IDENT_25 != null ? IDENT_25 . METHOD_32 ( ) : null ) ) ; } catch ( java . io . IOException ex ) { response . METHOD_28 ( IDENT_11 . IDENT_49 , STRING_10 ) ; IDENT_18 = false ; } } break ; } if ( IDENT_18 ) { response . METHOD_34 ( IDENT_11 . IDENT_50 ) ; if ( map != null ) { response . METHOD_35 ( IDENT_51 . IDENT_52 ) ; java . io . IDENT_53 writer = response . METHOD_11 ( ) ; com . fasterxml . jackson . databind . IDENT_54 IDENT_55 = new com . fasterxml . jackson . databind . METHOD_36 ( IDENT_56 ) ; IDENT_55 . METHOD_37 ( writer , map ) ; writer . write ( org . apache . hadoop . security . token . IDENT_4 . web . IDENT_2 . IDENT_57 ) ; writer . METHOD_38 ( ) ; } IDENT_18 = false ; } } } else { response . METHOD_28 ( IDENT_11 . IDENT_42 , java . text . IDENT_43 . format ( ( STRING_11 + STRING_12 ) , request . METHOD_5 ( ) , IDENT_21 , IDENT_21 . METHOD_6 ( ) ) ) ; IDENT_18 = false ; } } return IDENT_18 ; }
org . junit . Assert . assertFalse ( IDENT_5 . METHOD_13 ( token , request , response ) )