comparison gwt-client/src/main/java/org/dive4elements/river/client/server/auth/was/Response.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents 2c8259176c46
children d6d5ca6d4af0 0a5239a1e46e
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
90 return status != null && status.equals("samlp:Success"); 90 return status != null && status.equals("samlp:Success");
91 } 91 }
92 92
93 public String getStatus() { 93 public String getStatus() {
94 return XPathUtils.xpathString(this.root, 94 return XPathUtils.xpathString(this.root,
95 "./samlp:Status/samlp:StatusCode/@Value"); 95 "./samlp:Status/samlp:StatusCode/@Value");
96 } 96 }
97 97
98 98
99 public Assertion getAssertion() { 99 public Assertion getAssertion() {
100 if (this.assertion == null && this.root != null) { 100 if (this.assertion == null && this.root != null) {
113 113
114 @Override 114 @Override
115 public User getUser() throws AuthenticationException { 115 public User getUser() throws AuthenticationException {
116 Assertion assertion = this.getAssertion(); 116 Assertion assertion = this.getAssertion();
117 if (assertion == null) { 117 if (assertion == null) {
118 throw new AuthenticationException("Response doesn't contain an assertion"); 118 throw new AuthenticationException(
119 "Response doesn't contain an assertion");
119 } 120 }
120 List<String> features = this.features.getFeatures( 121 List<String> features = this.features.getFeatures(
121 this.assertion.getRoles()); 122 this.assertion.getRoles());
122 log.debug("User " + this.username + " with features " + features + 123 log.debug("User " + this.username + " with features " + features +
123 " successfully authenticated."); 124 " successfully authenticated.");

http://dive4elements.wald.intevation.org