All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.keycloak.representations.idm.ScopeMappingRepresentation Maven / Gradle / Ivy

package org.keycloak.representations.idm;

import java.util.HashSet;
import java.util.Set;

/**
 * @author Bill Burke
 * @version $Revision: 1 $
 */
public class ScopeMappingRepresentation {
    protected String self; // link
    protected String client;
    protected Set roles;

    public String getSelf() {
        return self;
    }

    public void setSelf(String self) {
        this.self = self;
    }

    public String getClient() {
        return client;
    }

    public void setClient(String client) {
        this.client = client;
    }

    public Set getRoles() {
        return roles;
    }

    public void setRoles(Set roles) {
        this.roles = roles;
    }

    public ScopeMappingRepresentation role(String role) {
        if (this.roles == null) this.roles = new HashSet();
        this.roles.add(role);
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy