Skip to content

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.

Parameters

Name Description
iCrc ICertificateReceiverCallback callback object to retrieve the certificates.

Return

true if certificates found for given issuer; false if not found and/or needs a network call

Return

true if certificate found for this app from its assigned SDK profile, false if not found and/or needs a network fetch

Throws

Exception Condition
com.airwatch.sdk.AirWatchSDKException if API is not available in Anchor Application or binding with Anchor app fails

open fun requestCertificates(iCrc: ICertificateReceiverCallback): Boolean

Requests the Anchor application to send the Certificates. This API is to be used only if the issuer and token information is not available; use the other requestCertificates API otherwise.

Access Level = AW_MANAGED (for details on access permission please check SDKManager)

Throws

Exception Condition
com.airwatch.sdk.AirWatchSDKException if API is not available in Anchor Application or binding with Anchor app fails