Skip to content

Commit 305ad9f

Browse files
authored
Update README.md
according to: https://stackoverflow.com/questions/13924825/safe-cast-to-hash-map It's not implicit to cast HashMap from a Map without a potential Exception. since [auth.getAttributes()](https://stackoverflow.com/questions/13924825/safe-cast-to-hash-map) returns a "Map", updating to reflect this change.
1 parent 06fff7a commit 305ad9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ Related to the SP there are 3 important endpoints: The metadata view, the ACS vi
403403
This code will provide the XML metadata file of our SP, based on the info that we provided in the settings files.
404404
```
405405
Auth auth = new Auth();
406-
Saml2Settings settings = auth.getSettings();
406+
Saml2Settings settings = gegetSettings();
407407
String metadata = settings.getSPMetadata();
408408
List<String> errors = Saml2Settings.validateMetadata(metadata);
409409
if (errors.isEmpty()) {
@@ -438,7 +438,7 @@ if (!errors.isEmpty()) {
438438
}
439439
}
440440
} else {
441-
HashMap<String, List<String>> attributes = auth.getAttributes();
441+
Map<String, List<String>> attributes = auth.getAttributes();
442442
String nameId = auth.getNameId();
443443
session.setAttribute("attributes", attributes);
444444
session.setAttribute("nameId", nameId);

0 commit comments

Comments
 (0)