Method UpdateCertificateSettings
UpdateCertificateSettings(String, String, CertificateSettingsContract)
Updates the settings of a certificate
Declaration
CertificateContract UpdateCertificateSettings(string connectionId, string certificateId, CertificateSettingsContract certificateSettings)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | certificateId | The certificate id. See also Id |
CertificateSettingsContract | certificateSettings | Certificate settings to update. See also CertificateSettingsContract |
Returns
Type | Description |
---|---|
CertificateContract | The updated certificate |
Remarks
- You need "Access to scheme" access right (01002060-38a7-11d8-a902-0050bf427e8f). See also GetUserAdminAccessRights(String, String)
Examples
POST http://YourServerName/InfoShare/Json/Common/UpdateCertificateSettings
Example for updating a certificate.///{
"connectionId": "9d0d0448-5348-4e4d-8652-bca92e629d2f",
"certificateId": "39edbade-a174-ed11-b4d5-00255df00701",
"certificateSettings": {
"AllowTokenLoginsAllUsers": true,
"AllowedUserIdsForLogin": [
"a0857052-6f45-ed11-a4c9-00155df08701", "a1122854-6f45-ed11-a4c9-00155df08701", "148b7052-6f45-ed11-a4c9-00155df0870101" ]}
}
Response:
{
"UpdateCertificateSettingsResult": {
"CertificateSerialNumber": "17FDFCC50EAB6D9640180A67783EB940",
"CertificateSettings": {
"AllowTokenLoginsAllUsers": true,
"AllowedUserIdsForLogin": [
"a0857052-6f45-ed11-a4c9-00155df08701", "a1122854-6f45-ed11-a4c9-00155df08701", "148b7052-6f45-ed11-a4c9-00155df0870101" ] },
"Description": "Test certificate pfx",
"Id": "39edbade-a174-ed11-b4d5-00255df00701",
"IssuedTo": "Hans Muster",
"Issuer": "CN=TestCertificate",
"Name": {
"Values": [{
"Culture": "de",
"Text": "TestCertificate.pfx" }, {
"Culture": "en",
"Text": "TestCertificate.pfx" }] },
"Thumbprint": "1409093551db49f20d34308ce142bc2b30d6ee51",
"ValidFrom": "2022-11-25T15:43:23",
"ValidTo": "2023-11-25T16:03:23" }
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | Not enough rights ({accessOperationName}, {accessOperationId}) (10071) |
ServiceException | The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129) |