The getCallerIdentity() method is used to obtain the java.security.Identity of the caller. The container is allowed to return null from this method. The enterprise bean should use the getCallerPrincipal method instead. The following is the general form of the method:
public java.security.Identity getCallerIdentity()
This method returns the Identity object that identifies the caller.
Responses to “What is the getCallerIdentity() method?”