A method for managing access to a physical resource in a data processing system supporting an application, the resource being identified by a physical address, and the method comprising: forming a token at an encryption entity by encrypting the physical address together with additional data, in such a way that decryption of the token yields decrypted data that includes the physical address and that can be used to verify the validity of the token; making the token available to the application; generating a command by means of the application for triggering accessing of the physical resource, the command including the token.