Skip to content

Commit

Permalink
Removing requireSignedRequest object property
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinthakaJ98 committed Oct 25, 2023
1 parent 47b3418 commit da04c44
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
public class RequestObjectConfiguration {

private String requestObjectSigningAlg;
private Boolean requireSignedRequestObject;

private RequestObjectEncryptionConfiguration encryption;

Expand All @@ -31,24 +30,6 @@ public void setRequestObjectSigningAlg(String requestObjectSigningAlg) {
this.requestObjectSigningAlg = requestObjectSigningAlg;
}

/**
**/
public RequestObjectConfiguration requireSignedRequestObject(Boolean requireSignedRequestObject) {

this.requireSignedRequestObject = requireSignedRequestObject;
return this;
}

@ApiModelProperty(example = "false", value = "")
@JsonProperty("requireSignedRequestObject")
@Valid
public Boolean getRequireSignedRequestObject() {
return requireSignedRequestObject;
}
public void setRequireSignedRequestObject(Boolean requireSignedRequestObject) {
this.requireSignedRequestObject = requireSignedRequestObject;
}

/**
**/
public RequestObjectConfiguration encryption(RequestObjectEncryptionConfiguration encryption) {
Expand Down Expand Up @@ -78,13 +59,12 @@ public boolean equals(java.lang.Object o) {
}
RequestObjectConfiguration requestObjectConfiguration = (RequestObjectConfiguration) o;
return Objects.equals(this.requestObjectSigningAlg, requestObjectConfiguration.requestObjectSigningAlg) &&
Objects.equals(this.requireSignedRequestObject, requestObjectConfiguration.requireSignedRequestObject) &&
Objects.equals(this.encryption, requestObjectConfiguration.encryption);
}

@Override
public int hashCode() {
return Objects.hash(requestObjectSigningAlg, requireSignedRequestObject, encryption);
return Objects.hash(requestObjectSigningAlg, encryption);
}

@Override
Expand All @@ -94,7 +74,6 @@ public String toString() {
sb.append("class RequestObjectConfiguration {\n");

sb.append(" requestObjectSigningAlg: ").append(toIndentedString(requestObjectSigningAlg)).append("\n");
sb.append(" requireSignedRequestObject: ").append(toIndentedString(requireSignedRequestObject)).append("\n");
sb.append(" encryption: ").append(toIndentedString(encryption)).append("\n");
sb.append("}");
return sb.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ private void updateRequestObjectConfiguration(OAuthConsumerAppDTO consumerAppDTO

consumerAppDTO.setRequestObjectEncryptionAlgorithm(requestObject.getEncryption().getAlgorithm());
consumerAppDTO.setRequestObjectEncryptionMethod(requestObject.getEncryption().getMethod());
consumerAppDTO.setRequestObjectSignatureValidationEnabled(requestObject.getRequireSignedRequestObject());
consumerAppDTO.setRequestObjectSignatureAlgorithm(requestObject.getRequestObjectSigningAlg());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ private RequestObjectConfiguration buildRequestObjectConfiguration(OAuthConsumer

return new RequestObjectConfiguration()
.requestObjectSigningAlg(oAuthConsumerAppDTO.getRequestObjectSignatureAlgorithm())
.requireSignedRequestObject(oAuthConsumerAppDTO.isRequestObjectSignatureValidationEnabled())
.encryption(buildRequestObjectEncryptionConfiguration(oAuthConsumerAppDTO));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3381,9 +3381,6 @@ components:
RequestObjectConfiguration:
type: object
properties:
requireSignedRequestObject:
type: boolean
example: false
requestObjectSigningAlg:
type: string
example: 'PS256'
Expand Down

0 comments on commit da04c44

Please sign in to comment.