Top Inners Fields Constructors Methods
org.keycloak.representations.idm.authorization

public Class RolePolicyRepresentation

extends AbstractPolicyRepresentation
Class Inheritance
Imports
java.util.HashSet, .Set

Author
Pedro Igor

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private Set<RolePolicyRepresentation.RoleDefinition>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addClientRole(String clientId, String name)

public void
addClientRole(String clientId, String name, boolean required)

public void
addRole(String name, boolean required)

public void
public Set<RolePolicyRepresentation.RoleDefinition>
public String
public void
Inherited from org.keycloak.representations.idm.authorization.AbstractPolicyRepresentation:
addPolicyaddResourceaddScopeequalsgetDecisionStrategygetDescriptiongetIdgetLogicgetNamegetOwnergetPoliciesgetResourcesgetResourcesDatagetScopesgetScopesDatahashCoderemovePolicyremoveScopesetDecisionStrategysetDescriptionsetIdsetLogicsetNamesetOwnersetPoliciessetResourcessetResourcesDatasetScopessetScopesDatasetType

Field Detail

rolesback to summary
private Set<RolePolicyRepresentation.RoleDefinition> roles

Constructor Detail

RolePolicyRepresentationback to summary
public RolePolicyRepresentation()

Method Detail

addClientRoleback to summary
public void addClientRole(String clientId, String name)
addClientRoleback to summary
public void addClientRole(String clientId, String name, boolean required)
addRoleback to summary
public void addRole(String name, boolean required)
addRoleback to summary
public void addRole(String name)
getRolesback to summary
public Set<RolePolicyRepresentation.RoleDefinition> getRoles()
getTypeback to summary
public String getType()

Overrides org.keycloak.representations.idm.authorization.AbstractPolicyRepresentation.getType.

Annotations
@Override
setRolesback to summary
public void setRoles(Set<RolePolicyRepresentation.RoleDefinition> roles)
org.keycloak.representations.idm.authorization back to summary

public Class RolePolicyRepresentation.RoleDefinition

extends Object
Class Inheritance
  • java.lang.Object
  • org.keycloak.representations.idm.authorization.RolePolicyRepresentation.RoleDefinition

Field Summary

Modifier and TypeField and Description
private String
private boolean

Constructor Summary

AccessConstructor and Description
public
public
RoleDefinition(String id, boolean required)

Method Summary

Modifier and TypeMethod and Description
public String
public boolean
public void
public void
setRequired(boolean required)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

idback to summary
private String id
requiredback to summary
private boolean required

Constructor Detail

RoleDefinitionback to summary
public RoleDefinition()
RoleDefinitionback to summary
public RoleDefinition(String id, boolean required)

Method Detail

getIdback to summary
public String getId()
isRequiredback to summary
public boolean isRequired()
setIdback to summary
public void setId(String id)
setRequiredback to summary
public void setRequired(boolean required)