authenticate the given cosmo credentials and register a cosmosecuritycontext for them . this method is used when cosmo components need to programatically log in a user rather than relying on a security context already being in place . concode_field_sep TestHelper testHelper concode_elem_sep ThreadLocal contexts concode_elem_sep Log LOG concode_field_sep void checkPermission concode_elem_sep void refreshSecurityContext concode_elem_sep void tearDownMockSecurityContext concode_elem_sep void registerTickets concode_elem_sep CosmoSecurityContext createSecurityContext concode_elem_sep void unregisterTickets concode_elem_sep CosmoSecurityContext setUpMockSecurityContext concode_elem_sep CosmoSecurityContext getSecurityContext
CosmoSecurityContext function ( String arg0 , String arg1 ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "srini_string" + arg0 ) ; } Principal loc0 = testHelper . makeDummyUserPrincipal ( arg0 , arg1 ) ; CosmoSecurityContext loc1 = createSecurityContext ( loc0 ) ; contexts . set ( loc1 ) ; return loc1 ; }