We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc11392 commit f83e12aCopy full SHA for f83e12a
security/specs/src/main/java/org/seedstack/seed/security/SecurityConfig.java
@@ -16,6 +16,7 @@
16
import java.util.HashSet;
17
import java.util.List;
18
import java.util.Map;
19
+import java.util.Optional;
20
import java.util.Set;
21
22
@Config("security")
@@ -39,6 +40,10 @@ public SecurityConfig addRealm(RealmConfig realmConfig) {
39
40
return this;
41
}
42
43
+ public Optional<RealmConfig> getRealm(String name) {
44
+ return realms.stream().filter(realmConfig -> realmConfig.getName().equals(name)).findFirst();
45
+ }
46
+
47
public Map<String, UserConfig> getUsers() {
48
return Collections.unmodifiableMap(users);
49
0 commit comments