컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
IntegrityTokenRequest.Builder
public
static
abstract
class
IntegrityTokenRequest.Builder
extends Object
java.lang.Object
|
↳ |
com.google.android.play.core.integrity.IntegrityTokenRequest.Builder
|
IntegrityTokenRequest
의 빌더입니다.
요약
상속된 메서드 |
java.lang.Object
클래스에서 상속
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
공개 생성자
공개 메서드
setCloudProjectNumber
public abstract IntegrityTokenRequest.Builder setCloudProjectNumber (long cloudProjectNumber)
무결성 토큰에 연결할 클라우드 프로젝트 번호입니다.
이 필드는 Google Play 외부에만 배포된 앱과 SDK에 필요합니다. Google Play에서 배포된 앱의 경우 클라우드 프로젝트 번호는 Play Console에서 구성되며 요청 시 설정할 필요가 없습니다.
클라우드 프로젝트 번호는 Play Integrity API가 사용 설정된 클라우드 프로젝트의 경우 Google Cloud 콘솔의 프로젝트 정보에서 확인할 수 있습니다.
Google 서버에서 토큰을 복호화하는 호출은 이 요청의 토큰에 연결된 클라우드 계정을 사용하여 인증해야 합니다.
매개변수 |
cloudProjectNumber |
long |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","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"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# IntegrityTokenRequest.Builder\n\nSummary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nIntegrityTokenRequest.Builder\n=============================\n\n\n`\npublic\nstatic\n\nabstract\nclass\nIntegrityTokenRequest.Builder\n`\n\n\n`\n\nextends `[Object](https://developer.android.com/reference/java/lang/Object.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|----------------------------------------------------------------------|\n| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||\n| ↳ | com.google.android.play.core.integrity.IntegrityTokenRequest.Builder |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nBuilder for [IntegrityTokenRequest](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.html).\n\nSummary\n-------\n\n| ### Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[Builder](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html#Builder())`() ` |\n\n| ### Public methods ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[IntegrityTokenRequest](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.html) | ` `[build](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html#build())`() ` Builds a [IntegrityTokenRequest](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.html). |\n| ` abstract `[IntegrityTokenRequest.Builder](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html) | ` `[setCloudProjectNumber](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html#setCloudProjectNumber(long))`(long cloudProjectNumber) ` A cloud project number to link to the integrity token. |\n| ` abstract `[IntegrityTokenRequest.Builder](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html) | ` `[setNonce](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html#setNonce(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` nonce) ` A nonce to bind the integrity token to. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` boolean` | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` `[String](https://developer.android.com/reference/java/lang/String.html) | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n\nPublic constructors\n-------------------\n\n### Builder\n\n```\npublic Builder ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### build\n\n```\npublic abstract IntegrityTokenRequest build ()\n```\n\nBuilds a [IntegrityTokenRequest](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.html).\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------------------------------------------------------------------------------------------|--------|\n| [IntegrityTokenRequest](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.html) | \u003cbr /\u003e |\n\n### setCloudProjectNumber\n\n```\npublic abstract IntegrityTokenRequest.Builder setCloudProjectNumber (long cloudProjectNumber)\n```\n\nA cloud project number to link to the integrity token.\n\nThis field is required for apps exclusively distributed outside of Google Play and SDKs. For\napps distributed on Google Play, the cloud project number is configured in the Play Console and\nneed not be set on the request.\n\nCloud project number can be found in Project info in your Google Cloud Console for the\ncloud project where Play Integrity API is enabled.\n\nCalls to [decrypt the token on Google's server](https://developer.android.com/google/play/integrity/classic#decrypt-verify-google-servers) must be authenticated using the cloud account that\nwas linked to the token in this request.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------------------|---------------|\n| `cloudProjectNumber` | `long` \u003cbr /\u003e |\n\n| Returns ||\n|-------------------------------------------------------------------------------------------------------------------------------------------|--------|\n| [IntegrityTokenRequest.Builder](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html) | \u003cbr /\u003e |\n\n### setNonce\n\n```\npublic abstract IntegrityTokenRequest.Builder setNonce (String nonce)\n```\n\nA nonce to bind the integrity token to.\n\nIt must be base64 encoded in web-safe no-wrap form.\n\nSee [details](https://developer.android.com/google/play/integrity/classic#nonce) about the nonce requirements and recommendations.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|-----------------|\n| `nonce` | `String` \u003cbr /\u003e |\n\n| Returns ||\n|-------------------------------------------------------------------------------------------------------------------------------------------|--------|\n| [IntegrityTokenRequest.Builder](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html) | \u003cbr /\u003e |"]]