> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/pin-management/ja/pinwosuru/pinwosuru.md).

# PINを表示する

このセクションでは、カードPINを安全に表示する方法について説明します。

D1は現在サポートしています **PINブロック ISO 0** によって返されます **イシュアのバックエンド**.

### ユーザーエクスペリエンス

<figure><img src="/files/3400029ba2c728b68a7fc093bb06e880ef5b803c" alt=""><figcaption><p>イシュアアプリケーションにおけるPIN表示のサンプル画面</p></figcaption></figure>

### フロー

<figure><img src="/files/71b30d09d2f77119ff2af02f53f1a65ad81c7230" alt=""><figcaption><p>PINを表示するためのハイレベルフロー</p></figcaption></figure>

1. **エンドユーザー** で認証する **イシュアアプリケーション** そしてPINを要求します。
2. イシュアアプリがD1 SDKのPIN表示メソッドを呼び出します。
3. D1 SDKは **D1バックエンド** 「Get PIN」APIを呼び出します。
4. D1バックエンドはPINブロックをから要求します **イシュアのバックエンド** （D1はPINを保存しません）。
5. D1バックエンド **トランスサイファーします** イシュア鍵からデバイス鍵へPINブロックをトランスサイファーします。
6. SDKは限定時間で安全なUIにPINを表示します。

### シーケンス図

#### 前提条件

* エンドユーザー、アカウント、カードが既にD1に登録されていること
* SDKが適切に初期化されていること
* イシュアアプリがD1 SDKのログインAPIを呼び出していること。
* イシュアのバックエンドが「Get PIN」エンドポイントを公開し、を返すこと。 **PINブロック ISO 0**.

<figure><img src="/files/21135d7a8501ff6a32d73be899516d9f9d4312d2" alt=""><figcaption><p>PIN表示のシーケンス図</p></figcaption></figure>

`CardPINUI` を含みます `PINDisplayTextView` （Android）および `D1PINDisplayTextField` （iOS）、これらはネイティブの [TextView](https://developer.android.com/reference/android/widget/TextView) および [UITextField](https://developer.apple.com/documentation/uikit/uitextfield)です。テキストフィールドの設定（フォント、サイズ、色）はこれらのネイティブオブジェクトのプロパティを使用して行うことができます。

### セキュリティとコンプライアンス

* PIN表示は安全で改ざん耐性のあるUIで行われます。
* PINデータはデバイスに永続化されません。
* データ交換はエンドツーエンドで暗号化されます。
* このソリューションはPIN処理に関してPCI DSS準拠となるよう設計されています。

### 必要なAPI

| API                                                                                                                                               | インバウンド／アウトバウンド    | 説明                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ------------------------------------ |
| [PINを取得](/pin-management/ja/d1-apiwosuru/d1-apirifarensu/autobaundoapid1kara/pin-guan-li-api.md#get-cms-api-v1-issuers-issuerid-cards-cardid-pin) | イシュア <- Thales D1 | モバイル上に表示するためにイシュアのバックエンドからPINを取得します。 |

### SDK

{% tabs %}
{% tab title="Android" %}

```java
PINDisplayTextView pinDisplayTextView = <PINDisplayTextView型のオブジェクト>;
CardPINUI ui = new CardPINUI(pinDisplayTextView);
String cardID = "<カードID>";

d1Task.displayPhysicalCardPIN(cardID, ui, new D1Task.Callback<Void>() {
    @Override
    public void onSuccess(Void data) {
        // 続行するワークフロー、PINは指定したテキストビューに表示されています。
    }
    
    @Override
    public void onError(D1Exception exception) {
        // D1 SDK 統合 – エラー管理セクションを参照してください
    }
});
```

{% endtab %}

{% tab title="iOS" %}

```swift
let displayTextField = <D1PINDisplayTextField型のオブジェクト>
let cardPINUI = CardPINUI(pinTextField: displayTextField)
let cardID = <カードID>

d1Task.displayPhysicalCardPIN(cardID, cardPINUI: cardPINUI) { error in
    if let error = error {
        // D1 SDK 統合 – エラー管理セクションを参照してください
    } else {
        // 続行するワークフロー、PINは指定したテキストフィールドに表示されています。
    }
}In
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.payments.thalescloud.io/pin-management/ja/pinwosuru/pinwosuru.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
