def security_token_hash(tokens)
      wsse = Akami.wsse
      tokens.map do |username, password|
        wsse.credentials(username, password)
        # Extract the UsernameToken element
        username_token = wsse.send(:wsse_username_token)['wsse:Security']
        # Restore the wsse namespace
        ns = {'xmlns:wsse' => Akami::WSSE::WSE_NAMESPACE}
        username_token[:attributes!]['wsse:UsernameToken'].merge!(ns)
        username_token
      end
    end
def security_token_hash(tokens)
      wsse = Akami.wsse
      tokens.map do |username, password|
        wsse.credentials(username, password)
        # Extract the UsernameToken element
        username_token = wsse.send(:wsse_username_token)['wsse:Security']
        # Restore the wsse namespace
        ns = {'xmlns:wsse' => Akami::WSSE::WSE_NAMESPACE}
        username_token[:attributes!]['wsse:UsernameToken'].merge!(ns)
        username_token
      end
    end
Returns tokens mapped to wsse:UsernameToken hash.