> For the complete documentation index, see [llms.txt](https://regulaforensics.gitbook.io/android/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://regulaforensics.gitbook.io/android/5.1-3/pkd-certificates.md).

# PKD certificates

Allows to add a list of PKD certificates during initialization process, which will be passed to Core:

```java
DocumentReader.Instance().addPKDCertificates(certificates);
```

Allows to add a list of PKD certificates when PKD reading started, which will be passed to Core:

```java
DocumentReader.Instance().startRFIDReader(new IDocumentReaderCompletion() {
    @Override
    public void onCompleted(int rfidAction, DocumentReaderResults results, String error) {
        // Completed RFID-chip processing
    }
}, new DocumentReader.RfidReaderRequest() {
    @Override
    public void onRequestPACertificates(byte[] bytes, PAResourcesIssuer paResourcesIssuer, DocumentReader.RfidPKDCertificateCompletion rfidPKDCertificateCompletion) {
        // Requested PA certificates
    }

    @Override
    public void onRequestTACertificates(String s, DocumentReader.RfidPKDCertificateCompletion rfidPKDCertificateCompletion) {
        // Requested TA certificates
    }

    @Override
    public void onRequestTASignature(TAChallenge taChallenge, DocumentReader.RfidTASignatureCompletion rfidTASignatureCompletion) {
        // Requested TA signature
    }
});
```

Allows to clear a list of PKD certificates, which has been passed to Core:

```java
DocumentReader.Instance().clearPKDCertificates();
```
