Until recently, intelligence sharing with Japan would have been unthinkable, but that changed following serious legislation on protecting official secrets.