We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 308f269 commit a805843Copy full SHA for a805843
1 file changed
src/main/java/org/opensearch/security/user/AuthCredentials.java
@@ -222,7 +222,7 @@ public Set<String> getBackendRoles() {
222
* @return Defensive copy of the security roles this user is member of.
223
*/
224
public Set<String> getSecurityRoles() {
225
- return new HashSet<String>(securityRoles);
+ return Set.copyOf(securityRoles);
226
}
227
228
public boolean isComplete() {
0 commit comments