ws1-client-sdk/com.airwatch.sdk/SDKManager/requestCertificates
requestCertificates¶
open fun requestCertificates(issuerId: String, token: String, iCrc: ICertificateReceiverCallback): Boolean
Requests the Anchor application to send the Certificates corresponding to the requested issuerId. If the token passed is not null and valid, then the anchor application will try to retrieve the certificates from console, if they are not found in the database.
Access Level = AW_MANAGED (for details on access permission please check SDKManager)
Parameters¶
| Name | Description |
|---|---|
| issuerId | the IssuerId of the Certificate. |
| token | the token corresponding to the issuer |
| iCrc | ICertificateReceiverCallback callback object to retrieve the certificates. |
Return¶
true if certificates found for giver issuer; false if not found and/or needs a network call
Throws¶
| Exception | Condition |
|---|---|
| com.airwatch.sdk.AirWatchSDKException | if API is not available in Anchor Application or binding with Anchor app fails |