6
6
7
7
package io .jans .as .common .model .registration ;
8
8
9
+ import com .fasterxml .jackson .annotation .JsonIgnore ;
9
10
import com .fasterxml .jackson .annotation .JsonInclude ;
10
11
import com .fasterxml .jackson .annotation .JsonProperty ;
12
+ import com .fasterxml .jackson .annotation .JsonSetter ;
11
13
import io .jans .as .model .common .*;
12
14
import io .jans .as .model .crypto .signature .AsymmetricSignatureAlgorithm ;
13
15
import io .jans .as .model .register .ApplicationType ;
28
30
* @author Javier Rojas Blum
29
31
* @version October 17, 2022
30
32
*/
31
- @ DataEntry (sortBy = {"displayName " })
33
+ @ DataEntry (sortBy = {"clientName " })
32
34
@ ObjectClass (value = "jansClnt" )
33
35
@ JsonInclude (JsonInclude .Include .NON_NULL )
34
36
public class Client extends DeletableEntity implements Serializable {
@@ -600,6 +602,7 @@ public void setIdTokenTokenBindingCnf(String idTokenTokenBindingCnf) {
600
602
this .idTokenTokenBindingCnf = idTokenTokenBindingCnf ;
601
603
}
602
604
605
+ @ JsonIgnore
603
606
public boolean isTokenBindingSupported () {
604
607
return StringUtils .isNotBlank (idTokenTokenBindingCnf );
605
608
}
@@ -707,11 +710,37 @@ public LocalizedString getClientNameLocalized() {
707
710
return clientNameLocalized ;
708
711
}
709
712
713
+ @ JsonSetter
714
+ public void setClientNameLocalized (LocalizedString clientNameLocalized ) {
715
+ this .clientNameLocalized = clientNameLocalized ;
716
+ }
717
+
718
+ @ JsonSetter
719
+ public void setLogoUriLocalized (LocalizedString logoUriLocalized ) {
720
+ this .logoUriLocalized = logoUriLocalized ;
721
+ }
722
+
723
+ @ JsonSetter
724
+ public void setClientUriLocalized (LocalizedString clientUriLocalized ) {
725
+ this .clientUriLocalized = clientUriLocalized ;
726
+ }
727
+
728
+ @ JsonSetter
729
+ public void setPolicyUriLocalized (LocalizedString policyUriLocalized ) {
730
+ this .policyUriLocalized = policyUriLocalized ;
731
+ }
732
+
733
+ @ JsonSetter
734
+ public void setTosUriLocalized (LocalizedString tosUriLocalized ) {
735
+ this .tosUriLocalized = tosUriLocalized ;
736
+ }
737
+
710
738
/**
711
739
* Sets the name of the Client to be presented to the user.
712
740
*
713
741
* @param clientName The name of the Client to be presented to the user.
714
742
*/
743
+ @ JsonIgnore
715
744
public void setClientNameLocalized (String clientName ) {
716
745
this .clientName = clientName ;
717
746
this .clientNameLocalized .setValue (clientName );
@@ -723,6 +752,7 @@ public void setClientNameLocalized(String clientName) {
723
752
* @param clientName The name of the Client to be presented to the user.
724
753
* @param locale The locale
725
754
*/
755
+ @ JsonIgnore
726
756
public void setClientNameLocalized (String clientName , Locale locale ) {
727
757
if (StringUtils .isNotBlank (locale .toString ())) {
728
758
this .clientNameLocalized .setValue (clientName , locale );
@@ -745,6 +775,7 @@ public LocalizedString getLogoUriLocalized() {
745
775
*
746
776
* @param logoUri The URL of a logo image for the Client where it can be retrieved.
747
777
*/
778
+ @ JsonIgnore
748
779
public void setLogoUriLocalized (String logoUri ) {
749
780
this .logoUri = logoUri ;
750
781
this .logoUriLocalized .setValue (logoUri );
@@ -756,6 +787,7 @@ public void setLogoUriLocalized(String logoUri) {
756
787
* @param logoUri The URL of a logo image for the Client where it can be retrieved.
757
788
* @param locale The locale
758
789
*/
790
+ @ JsonIgnore
759
791
public void setLogoUriLocalized (String logoUri , Locale locale ) {
760
792
if (StringUtils .isNotBlank (locale .toString ())) {
761
793
this .logoUriLocalized .setValue (logoUri , locale );
@@ -778,6 +810,7 @@ public LocalizedString getClientUriLocalized() {
778
810
*
779
811
* @param clientUri The URL of the home page of the Client.
780
812
*/
813
+ @ JsonIgnore
781
814
public void setClientUriLocalized (String clientUri ) {
782
815
this .clientUri = clientUri ;
783
816
this .clientUriLocalized .setValue (clientUri );
@@ -789,6 +822,7 @@ public void setClientUriLocalized(String clientUri) {
789
822
* @param clientUri The URL of the home page of the Client.
790
823
* @param locale The locale
791
824
*/
825
+ @ JsonIgnore
792
826
public void setClientUriLocalized (String clientUri , Locale locale ) {
793
827
if (StringUtils .isNotBlank (locale .toString ())) {
794
828
this .clientUriLocalized .setValue (clientUri , locale );
@@ -813,6 +847,7 @@ public LocalizedString getPolicyUriLocalized() {
813
847
*
814
848
* @param policyUri A URL location about how the profile data will be used.
815
849
*/
850
+ @ JsonIgnore
816
851
public void setPolicyUriLocalized (String policyUri ) {
817
852
this .policyUri = policyUri ;
818
853
this .policyUriLocalized .setValue (policyUri );
@@ -825,6 +860,7 @@ public void setPolicyUriLocalized(String policyUri) {
825
860
* @param policyUri A URL location about how the profile data will be used.
826
861
* @param locale The locale
827
862
*/
863
+ @ JsonIgnore
828
864
public void setPolicyUriLocalized (String policyUri , Locale locale ) {
829
865
if (StringUtils .isNotBlank (locale .toString ())) {
830
866
this .policyUriLocalized .setValue (policyUri , locale );
@@ -849,6 +885,7 @@ public LocalizedString getTosUriLocalized() {
849
885
*
850
886
* @param tosUri The terms of service URL.
851
887
*/
888
+ @ JsonIgnore
852
889
public void setTosUriLocalized (String tosUri ) {
853
890
this .tosUri = tosUri ;
854
891
this .tosUriLocalized .setValue (tosUri );
@@ -861,6 +898,7 @@ public void setTosUriLocalized(String tosUri) {
861
898
* @param tosUri The terms of service URL.
862
899
* @param locale The Locale
863
900
*/
901
+ @ JsonIgnore
864
902
public void setTosUriLocalized (String tosUri , Locale locale ) {
865
903
if (StringUtils .isNotBlank (locale .toString ())) {
866
904
this .tosUriLocalized .setValue (tosUri , locale );
@@ -1421,14 +1459,6 @@ public void setBackchannelUserCodeParameter(Boolean backchannelUserCodeParameter
1421
1459
this .backchannelUserCodeParameter = backchannelUserCodeParameter ;
1422
1460
}
1423
1461
1424
- public String getDisplayName () {
1425
- return getClientName ();
1426
- }
1427
-
1428
- public void setDisplayName (String displayName ) {
1429
- setClientName (displayName );
1430
- }
1431
-
1432
1462
public String getDescription () {
1433
1463
return description ;
1434
1464
}
0 commit comments