Class ScopeRepresentation
- java.lang.Object
-
- org.keycloak.representations.idm.authorization.ScopeRepresentation
-
- Direct Known Subclasses:
AbstractResourceService.Scope
public class ScopeRepresentation extends Object
A bounded extent of access that is possible to perform on a resource set. In authorization policy terminology, a scope is one of the potentially many "verbs" that can logically apply to a resource set ("object").
For more details, OAuth-resource-reg.
- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description ScopeRepresentation()
Creates an instance.ScopeRepresentation(String name)
Creates an instance.ScopeRepresentation(String name, String iconUri)
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getDisplayName()
String
getIconUri()
String
getId()
String
getName()
List<PolicyRepresentation>
getPolicies()
List<ResourceRepresentation>
getResources()
int
hashCode()
void
setDisplayName(String displayName)
void
setIconUri(String iconUri)
void
setId(String id)
void
setName(String name)
void
setPolicies(List<PolicyRepresentation> policies)
void
setResources(List<ResourceRepresentation> resources)
-
-
-
Constructor Detail
-
ScopeRepresentation
public ScopeRepresentation(String name, String iconUri)
Creates an instance.- Parameters:
name
- the a human-readable string describing some scope (extent) of accessiconUri
- aURI
for a graphic icon representing the scope
-
ScopeRepresentation
public ScopeRepresentation(String name)
Creates an instance.- Parameters:
name
- the a human-readable string describing some scope (extent) of access
-
ScopeRepresentation
public ScopeRepresentation()
Creates an instance.
-
-
Method Detail
-
getName
public String getName()
-
getDisplayName
public String getDisplayName()
-
getIconUri
public String getIconUri()
-
getId
public String getId()
-
setId
public void setId(String id)
-
setName
public void setName(String name)
-
setDisplayName
public void setDisplayName(String displayName)
-
setIconUri
public void setIconUri(String iconUri)
-
getPolicies
public List<PolicyRepresentation> getPolicies()
-
setPolicies
public void setPolicies(List<PolicyRepresentation> policies)
-
getResources
public List<ResourceRepresentation> getResources()
-
setResources
public void setResources(List<ResourceRepresentation> resources)
-
-