Trusted model based dynamic role access control method

The invention relates to a method for controlling the access of dynamic part based on credit mode, which can solve the safe problem between networks in mixing calculation (Grid& P2P) condition. The invention uses the application of credit mode in the access control mechanism to salve the dynamic change of part in the mixing calculation between networks, to build a safety system structure that authorizing the user in the mixing calculation condition between networks for solving the safety and dynamic property. The invention uses the access control mechanism based on part and the credit mode to protect the resource provider and the resource consumer in grid section.