METHOD_0 ( ) { sun . security . tools . IDENT_0 . IDENT_1 gen = new sun . security . tools . IDENT_0 . METHOD_1 ( STRING_0 , STRING_1 , null ) ; gen . METHOD_2 ( INT_0 ) ; java . security . IDENT_2 . IDENT_3 IDENT_2 = gen . METHOD_3 ( new sun . security . IDENT_4 . METHOD_4 ( STRING_2 ) , new java . util . Date ( ) , INT_1 ) ; java . security . IDENT_5 IDENT_6 = java . security . IDENT_5 . getInstance ( java . security . IDENT_5 . METHOD_5 ( ) ) ; java . lang . String IDENT_7 = STRING_3 ; java . lang . String IDENT_8 = STRING_4 ; java . lang . String IDENT_9 = STRING_5 ; IDENT_6 . load ( null , IDENT_9 . METHOD_6 ( ) ) ; IDENT_6 . METHOD_7 ( IDENT_7 , IDENT_2 ) ; java . io . IDENT_10 IDENT_11 = new java . io . METHOD_8 ( IDENT_8 ) ; IDENT_6 . store ( IDENT_11 , IDENT_9 . METHOD_6 ( ) ) ; IDENT_11 . close ( ) ; org . mockito . Mockito . when ( IDENT_12 . METHOD_9 ( IDENT_13 . IDENT_14 ) ) . thenReturn ( IDENT_8 ) ; org . mockito . Mockito . when ( IDENT_12 . METHOD_9 ( IDENT_13 . IDENT_15 ) ) . thenReturn ( IDENT_9 ) ; org . mockito . Mockito . when ( IDENT_12 . METHOD_9 ( IDENT_13 . IDENT_16 ) ) . thenReturn ( IDENT_7 ) ; java . lang . String token = java . util . UUID . METHOD_10 ( ) . toString ( ) ; java . security . IDENT_17 IDENT_18 = java . security . IDENT_17 . getInstance ( STRING_6 ) ; IDENT_18 . update ( token . getBytes ( IDENT_19 . UTF_8 ) ) ; byte [ ] IDENT_20 = IDENT_18 . METHOD_11 ( ) ; java . security . IDENT_21 key = gen . METHOD_12 ( ) ; javax . crypto . IDENT_22 c = javax . crypto . IDENT_22 . getInstance ( key . METHOD_13 ( ) ) ; c . init ( IDENT_22 . IDENT_23 , key ) ; java . lang . String IDENT_24 = org . apache . commons . codec . IDENT_25 . IDENT_26 . METHOD_14 ( c . METHOD_15 ( IDENT_20 ) ) ; boolean IDENT_27 = IDENT_28 . METHOD_16 ( token , IDENT_24 ) ; "<AssertPlaceHolder>" ; java . nio . file . IDENT_29 . delete ( new java . io . File ( IDENT_8 ) . METHOD_17 ( ) ) ; } METHOD_16 ( java . lang . String , java . lang . String ) { java . io . InputStream is = null ; try { java . lang . String IDENT_8 = IDENT_30 . METHOD_9 ( IDENT_13 . IDENT_14 ) ; java . lang . String IDENT_31 = IDENT_30 . METHOD_9 ( IDENT_13 . IDENT_15 ) ; java . lang . String IDENT_7 = IDENT_30 . METHOD_9 ( IDENT_13 . IDENT_16 ) ; if ( ( ( IDENT_8 == null ) || ( IDENT_31 == null ) ) || ( IDENT_7 == null ) ) { org . oscm . app . IDENT_32 . service . IDENT_33 . logger . error ( STRING_7 ) ; return false ; } java . security . IDENT_17 IDENT_18 = java . security . IDENT_17 . getInstance ( STRING_6 ) ; IDENT_18 . update ( token . getBytes ( IDENT_19 . UTF_8 ) ) ; java . lang . String IDENT_20 = new java . lang . String ( IDENT_18 . METHOD_11 ( ) ) ; is = new java . io . METHOD_18 ( IDENT_8 ) ; java . security . IDENT_5 IDENT_34 = java . security . IDENT_5 . getInstance ( java . security . IDENT_5 . METHOD_5 ( ) ) ; IDENT_34 . load ( is , IDENT_31 . METHOD_6 ( ) ) ; java . security . IDENT_2 . IDENT_35 IDENT_2 = IDENT_34 . METHOD_19 ( IDENT_7 ) ; if ( IDENT_2 == null ) { org . oscm . app . IDENT_32 . service . IDENT_33 . logger . error ( ( STRING_8 + IDENT_7 ) ) ; return false ; } java . security . IDENT_21 key = IDENT_2 . METHOD_20 ( ) ; if ( key == null ) { org . oscm . app . IDENT_32 . service . IDENT_33 . logger . error ( STRING_9 ) ; return false ; } javax . crypto . IDENT_22 c = javax . crypto . IDENT_22 . getInstance ( key . METHOD_13 ( ) ) ; c . init ( IDENT_22 . IDENT_36 , key ) ; byte [ ] IDENT_37 = org . apache . commons . codec . IDENT_25 . IDENT_26 . METHOD_21 ( IDENT_38 ) ; java . lang . String IDENT_39 = new java . lang . String ( c . METHOD_15 ( IDENT_37 ) ) ; if ( IDENT_20 . equals ( IDENT_39 ) ) { return true ; } } catch ( java . security . IDENT_40 | java . security . IDENT_41 | java . security . IDENT_2 . IDENT_42 | java . io . IOException | javax . crypto . IDENT_43 | java . security . IDENT_44 | javax . crypto . IDENT_45 | javax . crypto . IDENT_46 | org . oscm . app . IDENT_32 . exceptions . IDENT_47 e ) { org . oscm . app . IDENT_32 . service . IDENT_33 . logger . error ( e . getMessage ( ) ) ; } finally { try { if ( is != null ) { is . close ( ) ; } } catch ( java . io . IOException e ) { } } return false ; }
org . junit . Assert . assertTrue ( IDENT_27 )