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

public Class PermissionRequest

extends Object
Class Inheritance
Imports
java.util.Arrays, .HashMap, .HashSet, .List, .Map, .Set, com.fasterxml.jackson.annotation.JsonProperty, com.fasterxml.jackson.databind.annotation.JsonDeserialize, org.keycloak.json.StringListMapDeserializer

Author
Pedro Igor

Field Summary

Modifier and TypeField and Description
private Map<String, List<String>>
private String
private String
private Set<String>

Constructor Summary

AccessConstructor and Description
public
PermissionRequest(String resourceId, String... scopes)

public

Method Summary

Modifier and TypeMethod and Description
public void
addScope(String... name)

public Map<String, List<String>>
public String
public String
public Set<String>
public void
setClaim(String name, String... value)

public void
public void
setResourceId(String resourceSetId)

public void
setResourceServerId(String resourceServerId)

public void
setScopes(Set<String> scopes)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

claimsback to summary
private Map<String, List<String>> claims
Annotations
@JsonDeserialize
using:StringListMapDeserializer
resourceIdback to summary
private String resourceId
resourceServerIdback to summary
private String resourceServerId
scopesback to summary
private Set<String> scopes

Constructor Detail

PermissionRequestback to summary
public PermissionRequest(String resourceId, String... scopes)
PermissionRequestback to summary
public PermissionRequest()

Method Detail

addScopeback to summary
public void addScope(String... name)
getClaimsback to summary
public Map<String, List<String>> getClaims()
getResourceIdback to summary
public String getResourceId()
getResourceServerIdback to summary
public String getResourceServerId()
getScopesback to summary
public Set<String> getScopes()
setClaimback to summary
public void setClaim(String name, String... value)
setClaimsback to summary
public void setClaims(Map<String, List<String>> claims)
setResourceIdback to summary
public void setResourceId(String resourceSetId)
Annotations
@JsonProperty:resource_id
setResourceServerIdback to summary
public void setResourceServerId(String resourceServerId)
Annotations
@JsonProperty:resource_server_id
setScopesback to summary
public void setScopes(Set<String> scopes)
Annotations
@JsonProperty:resource_scopes