Updated on 2025-08-21 GMT+08:00
Configuring SDK Client Authentication
The credential parameters vary depending on the initialization of different clients. You can refer to the following sample code to upload the appropriate credential.
// Initialize the IdentityCenterClient client. IdentityCenterClient client = IdentityCenterClient.newBuilder() .withCredential(new GlobalCredentials() .withAk(ak) .withSk(sk)) .build();
// Initialize the IdentityCenterStoreClient client. IdentityCenterStoreClient client = IdentityCenterStoreClient.newBuilder() .withCredential(new BasicCredentials() .withAk(ak) .withSk(sk)) .build();
// Initialize the IdentityCenterOIDCClient client. IdentityCenterOIDCClient client = IdentityCenterOIDCClient.newBuilder() .withCredential(new IdentityCenterOIDCCredentials()) .build();
// Initialize the IdentityCenterSCIMClient client. IdentityCenterSCIMClient client = IdentityCenterSCIMClient.newBuilder() .withCredential(new IdentityCenterSCIMCredentials()) .build();
// Initialize the IdentityCenterPortalAPIClient client. IdentityCenterPortalAPIClient client = IdentityCenterPortalAPIClient.newBuilder() .withCredential(new IdentityCenterPortalAPICredentials()) .build();
Parent topic: Appendixes
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot