对象:AuthenticationResponse
    
    
      
    
    
      
      使用集合让一切井井有条
    
    
      
      根据您的偏好保存内容并对其进行分类。
    
  
    
  
      
    
  
  
  
  
  
  
    
    
    
响应正文
身份验证响应过程中发送的对象。
以下是一个纯文本 JSON 响应示例:
  {
    "associationId": "88ydEE-ioiwe==",
    "requestId": "375dhjf9-Uydd="
  }
AuthenticationResponse 使用 PGP 或 JWE+JWS 进行加密和签名。
此外,此值采用可在网页上安全使用的 base64 编码。该编码在下文中称为
Base64UrlEncode。换言之,
必须通过以下函数传递 AuthenticationRequest:
Base64UrlEncode(
  PGPSignAndEncrypt(
    '{"associationId": "88ydEE-ioiwe==", "requestId": "375dhjf9-Uydd="}'
  )
)
或
Base64UrlEncode(
  JWSignAndEncrypt(
    '{"associationId": "88ydEE-ioiwe==", "requestId": "375dhjf9-Uydd="}'
  )
)
  
    
      | JSON 表示法 | 
    
  
  
    
      
{
  "associationId": string,
  "requestId": string,
  "authenticationResult": {
  object (AuthenticationResult)  }
  }
       | 
    
  
  
    
      | 字段 | 
    
  
  
    
      associationId | 
      
         string 
        
          由付款集成商反馈给 Google。这样,Google 就可以检查传回的 associationId 是否与传入的 gspAssociationId 相同。
          如果请求中存在此值,则必须提供此值。
         
       | 
    
    
      requestId | 
      
         string 
        
          必需:由付款集成商反馈给 Google。这有助于 Google 防范重放攻击。
         
       | 
    
    
      authenticationResult | 
      
         object (AuthenticationResult) 
        身份验证的结果。对于在身份验证完成后不会向付款集成商进行后续调用的流程,必须在响应中包含结果,以确保结果的完整性。 
       | 
    
  
AuthenticationResult
  
    
      | JSON 表示法 | 
    
  
  
    
      
{
  // Union field result can be only one of the following:
  "success": {
  object (Empty)
  },
  "cancelled": {
  object (Empty)
  },
  "fatalError": {
  object (Empty)
  }
  // End of list of possible types for union field result.
  }
         | 
      
    
  
  
    
      
        | 字段 | 
      
    
    
      
        联合字段 result。 result 只能是下列其中一项:
  | 
      
      
        success | 
        
           object (Empty) 
          身份验证成功。 
         | 
      
      
        cancelled | 
        
           object (Empty) 
          用户手动取消了流程,因此应中止流程。 
         | 
      
      
        fatalError | 
        
           object (Empty) 
          身份验证因严重原因而失败,应中止流程。 
         | 
      
    
  
  
  
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  保留所有权利。Java 是 Oracle 和/或其关联公司的注册商标。
  最后更新时间 (UTC):2025-07-25。
  
  
  
    
      [[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-25。"],[],["The authentication response, a JSON object, must be encrypted (PGP or JWE+JWS) and web-safe base64 encoded (`Base64UrlEncode`). It includes `associationId` (a reflected identifier), and a required `requestId` (to prevent replay attacks). Additionally, `authenticationResult` indicates success, user cancellation, or fatal error. The clear text version, like `{\"associationId\": \"...\", \"requestId\": \"...\"}`, is signed, encrypted and then encoded as indicated. `associationId` must be present in the response if it was in the request.\n"]]