1010import org .elasticsearch .common .io .stream .StreamOutput ;
1111import org .elasticsearch .core .Nullable ;
1212import org .elasticsearch .xcontent .XContentBuilder ;
13- import org .elasticsearch .xpack .idp .saml .support .SamlInitiateSingleSignOnAttributes ;
1413
1514import 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