question: returns an array of principal representing the roles associated with the identityinvoking the ejb . this method will check performs checks against run as identities in order to resolve the correct set of roles to be granted . concode_field_sep Method viewMethod concode_elem_sep String viewClassName concode_field_sep Object processInvocation concode_elem_sep void hasPermission concode_elem_sep MethodInterfaceType getMethodInterfaceType concode_elem_sep EJBMethodPermission createEjbMethodPermission
target: Principal [ ] function ( SecurityIdentity arg0 ) { Set < String > loc0 = new HashSet < > ( ) ; arg0 . getRoles ( "srini_string" ) . forEach ( loc0 :: add ) ; return loc0 . stream ( ) . map ( ( Function < String , Principal > ) roleName -> ( Principal ) ( ) -> roleName ) . toArray ( Principal [ ] :: new ) ; }