Skip to content

Commit be900e6

Browse files
committed
* Remove attributes from Response object.
Signed-off-by: lloydmeta <[email protected]>
1 parent 8de83dc commit be900e6

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

x-pack/plugin/identity-provider/src/main/java/org/elasticsearch/xpack/idp/action/SamlInitiateSingleSignOnResponse.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import org.elasticsearch.common.io.stream.StreamOutput;
1111
import org.elasticsearch.core.Nullable;
1212
import org.elasticsearch.xcontent.XContentBuilder;
13-
import org.elasticsearch.xpack.idp.saml.support.SamlInitiateSingleSignOnAttributes;
1413

1514
import java.io.IOException;
1615

@@ -21,32 +20,19 @@ public class SamlInitiateSingleSignOnResponse extends ActionResponse {
2120
private final String entityId;
2221
private final String samlStatus;
2322
private final String error;
24-
private final SamlInitiateSingleSignOnAttributes attributes;
2523

2624
public SamlInitiateSingleSignOnResponse(
2725
String entityId,
2826
String postUrl,
2927
String samlResponse,
3028
String samlStatus,
3129
@Nullable String error
32-
) {
33-
this(entityId, postUrl, samlResponse, samlStatus, error, null);
34-
}
35-
36-
public SamlInitiateSingleSignOnResponse(
37-
String entityId,
38-
String postUrl,
39-
String samlResponse,
40-
String samlStatus,
41-
@Nullable String error,
42-
@Nullable SamlInitiateSingleSignOnAttributes attributes
4330
) {
4431
this.entityId = entityId;
4532
this.postUrl = postUrl;
4633
this.samlResponse = samlResponse;
4734
this.samlStatus = samlStatus;
4835
this.error = error;
49-
this.attributes = attributes;
5036
}
5137

5238
public String getPostUrl() {
@@ -69,18 +55,13 @@ public String getSamlStatus() {
6955
return samlStatus;
7056
}
7157

72-
public SamlInitiateSingleSignOnAttributes getAttributes() {
73-
return attributes;
74-
}
75-
7658
@Override
7759
public void writeTo(StreamOutput out) throws IOException {
7860
out.writeString(entityId);
7961
out.writeString(postUrl);
8062
out.writeString(samlResponse);
8163
out.writeString(samlStatus);
8264
out.writeOptionalString(error);
83-
out.writeOptionalWriteable(attributes);
8465
}
8566

8667
public void toXContent(XContentBuilder builder) throws IOException {

0 commit comments

Comments
 (0)