Skip to content

Commit a94196b

Browse files
committed
Introduced impl. for new dtbd format, copyright date range update
1 parent f2be20a commit a94196b

2 files changed

Lines changed: 23 additions & 24 deletions

File tree

mid-java-client-core/src/main/java/ch/swisscom/mid/client/model/StatusCode.java

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Swisscom (Schweiz) AG
2+
* Copyright 2021-2025 Swisscom (Schweiz) AG
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,59 +15,58 @@
1515
*/
1616
package ch.swisscom.mid.client.model;
1717

18+
import ch.swisscom.mid.client.impl.Loggers;
1819
import org.slf4j.Logger;
1920
import org.slf4j.LoggerFactory;
2021

21-
import ch.swisscom.mid.client.impl.Loggers;
22-
2322
public enum StatusCode implements DocumentedEnum {
2423

2524
REQUEST_OK(100, false, "The request from the AP has been accepted."),
2625
WRONG_PARAM(101, true, "The AP’s request contains wrong parameters."),
2726
MISSING_PARAM(102, true, "The AP’s request has missing parameters."),
2827
WRONG_DATA_LENGTH(103, true, "The AP’s request contains a DTBD message "
29-
+ "that is exceeding the max. allowed length."),
28+
+ "that is exceeding the max. allowed length."),
3029
UNAUTHORIZED_ACCESS(104, true, "AP is not authorized to access the Mobile ID API. "
31-
+ "This is typically due to a wrong AP_ID value or missing X509 client certificate."),
30+
+ "This is typically due to a wrong AP_ID value or missing X509 client certificate."),
3231
UNKNOWN_CLIENT(105, true, "The MSISDN value is unknown to the MID service. "
33-
+ "There is no Mobile ID user with that MSISDN value."),
32+
+ "There is no Mobile ID user with that MSISDN value."),
3433
INAPPROPRIATE_DATA(107, true, "The AP’s request was not accepted due to inappropriate data. "
35-
+ "Typically, the DTBD message does not contain the mandatory prefix string "
36-
+ "(see section 2.19 of the Reference Guide) that is a unique string for each AP."),
34+
+ "Typically, the DTBD message does not contain the mandatory prefix string "
35+
+ "(see section 2.19 of the Reference Guide) that is a unique string for each AP."),
3736
INCOMPATIBLE_INTERFACE(108, true, "The AP’s request contains bad data. "
38-
+ "Typically, a wrong MajorVersion or MinorVersion value has been set in the request."),
37+
+ "Typically, a wrong MajorVersion or MinorVersion value has been set in the request."),
3938
UNSUPPORTED_PROFILE(109, true, "Either the AP has specified an MSS signature profile value "
40-
+ "that the MSSP does not support or the AP is not authorized to use the "
41-
+ "Signature Profile. See section 3.2.1 of the Reference Guide."),
39+
+ "that the MSSP does not support or the AP is not authorized to use the "
40+
+ "Signature Profile. See section 3.2.1 of the Reference Guide."),
4241
EXPIRED_TRANSACTION(208, true, "The transaction timed out. The AP may try again."),
4342
OTA_ERROR(209, true, "A Problem related to the MSSP internal Over-The-Air (OTA) communication "
44-
+ "with the Mobile ID user’s SIM. "
45-
+ "Typically, there is a temporary problem with SMS communication."),
43+
+ "with the Mobile ID user’s SIM. "
44+
+ "Typically, there is a temporary problem with SMS communication."),
4645
USER_CANCEL(401, true, "The user cancelled the request at the mobile phone."),
4746
PIN_NR_BLOCKED(402, true, "The Mobile ID PIN of the SIM method is blocked. "
48-
+ "The user must reactivate the Mobile ID SIM card on the Mobile ID selfcare portal."),
47+
+ "The user must reactivate the Mobile ID SIM card on the Mobile ID selfcare portal."),
4948
CARD_BLOCKED(403, true, "The Mobile ID user is currently suspended. "
50-
+ "Please contact Swisscom Support."),
49+
+ "Please contact Swisscom Support."),
5150
NO_KEY_FOUND(404, true, "The Mobile ID user exists but is not in an active state. "
52-
+ "The user must activate the account on the Mobile ID selfcare portal."),
51+
+ "The user must activate the account on the Mobile ID selfcare portal."),
5352
PB_SIGNATURE_PROCESS(406, true, "A signature transaction is already on-going. "
54-
+ "Please try again later."),
53+
+ "Please try again later."),
5554
NO_CERT_FOUND(422, true, "The Mobile ID user exists but is not in an active state. "
56-
+ "The user must activate the account on the Mobile ID selfcare portal."),
55+
+ "The user must activate the account on the Mobile ID selfcare portal."),
5756
GEOFENCING_POLICY_VIOLATION(450, true, "Geo policy for referenced AP ID was violated. "
5857
+ "Please try again later or contact Swisscom Support, if the problem persists."),
5958
SIGNATURE(500, false, "The MSS Signature transaction was successful."),
6059
REVOKED_CERTIFICATE(501, false, "The Mobile ID user’s509 certificate has been revoked. "
61-
+ "The user must re-activate the account on the Mobile ID selfcare portal."),
60+
+ "The user must re-activate the account on the Mobile ID selfcare portal."),
6261
VALID_SIGNATURE(502, false, "The MSS Signature transaction was successful."),
6362
INVALID_SIGNATURE(503, false, "The MSS Signature transaction failed due to invalid signature data. "
64-
+ "The user must re-activate the account on the Mobile ID selfcare portal."),
63+
+ "The user must re-activate the account on the Mobile ID selfcare portal."),
6564
OUTSTANDING_TRANSACTION(504, false, "The MSS Signature transaction is outstanding. "
66-
+ "The AP must try again later."),
65+
+ "The AP must try again later."),
6766
CONNECTION_REFUSED(780, true, "The connection to the service was refused. "
68-
+ "The client did not present a valid TLS certificate"),
67+
+ "The client did not present a valid TLS certificate"),
6968
INTERNAL_ERROR(900, true, "An internal error on MSSP has occurred. "
70-
+ "Please try again later or contact Swisscom Support, if the problem persists.");
69+
+ "Please try again later or contact Swisscom Support, if the problem persists.");
7170

7271
private static final Logger log = LoggerFactory.getLogger(Loggers.CLIENT);
7372

mid-java-client-rest/src/main/java/ch/swisscom/mid/client/rest/FaultProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Swisscom (Schweiz) AG
2+
* Copyright 2021-2025 Swisscom (Schweiz) AG
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)