package org.carlspring.strongbox.security.jaas;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.LinkedHashSet;
import java.util.Set;

/**
 * @author mtodorov
 */
@XmlRootElement(name = "privileges")
@XmlAccessorType(XmlAccessType.FIELD)
public class Privileges
{

    @XmlElement(name = "privilege")
    private Set<Privilege> privileges = new LinkedHashSet<>();


    public Privileges()
    {
    }

    public Privileges(Set<Privilege> privileges)
    {
        this.privileges = privileges;
    }

    public Set<Privilege> getPrivileges()
    {
        return privileges;
    }

    public void setPrivileges(Set<Privilege> privileges)
    {
        this.privileges = privileges;
    }

    @Override
    public String toString()
    {
        final StringBuilder sb = new StringBuilder("\n\tPrivileges{");
        sb.append("privileges=").append(privileges);
        sb.append('}');
        return sb.toString();
    }
}

@@ -1044,16 +1044,25 @@
 d('%7D');%0A
+        %0A
         
@@ -1089,10 +1089,15 @@
 ;%0A    %7D%0A
+    %0A
 %7D%0A

Update Privileges.java