Patent ID: 7526798

Claim:
A method for handling network security, said method comprising: receiving, at a first server, a client request from a client, wherein the client request includes a user identifier and a password; authenticating the client request using a security service, wherein the security service is different than the first server; in response to authenticating the client request, sending an authentication token from the security service to the first server; in response to receiving the authentication token at the first server, storing the user identifier without the password in a client credential at the first server, wherein the client credential corresponds to a client credential type; after receiving the authentication token from the security service, determining that a run-as command is specified that allows the first server to send an identity assertion token to a downstream server using a different identity, wherein the different identity is based upon a credential type that is selected from the group consisting of the client credential type, a server credential type, and a specific identifier credential type; in response to determining that the run-as command is specified, selecting, at the first server, one of the credential types; determining whether an enterprise Java bean has been invoked; in response to determining that the enterprise Java bean has been invoked, generating the identity assertion token using an identified credential which corresponds to the selected credential type; and sending the identity assertion token from the first server directly to the downstream server.