Class MapPermissionTicketAdapter
java.lang.Object
org.keycloak.models.map.authorization.adapter.AbstractPermissionTicketModel<MapPermissionTicketEntity>
org.keycloak.models.map.authorization.adapter.MapPermissionTicketAdapter
- All Implemented Interfaces:
PermissionTicket
public class MapPermissionTicketAdapter
extends AbstractPermissionTicketModel<MapPermissionTicketEntity>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.authorization.model.PermissionTicket
PermissionTicket.FilterOption, PermissionTicket.SearchableFields
-
Field Summary
Fields inherited from class org.keycloak.models.map.authorization.adapter.AbstractPermissionTicketModel
entity, storeFactory
-
Constructor Summary
ConstructorDescriptionMapPermissionTicketAdapter
(RealmModel realm, ResourceServer resourceServer, MapPermissionTicketEntity entity, StoreFactory storeFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Returns the unique identifier for this instance.getOwner()
Returns the resource's owner, which is usually an identifier that uniquely identifies the resource's owner.Returns theResource
associated with this instanceReturns theResourceServer
where this policy belongs to.getScope()
Returns theScope
associated with this instanceboolean
void
setGrantedTimestamp
(Long millis) void
toString()
Methods inherited from class org.keycloak.models.map.authorization.adapter.AbstractPermissionTicketModel
equals, hashCode
-
Constructor Details
-
MapPermissionTicketAdapter
public MapPermissionTicketAdapter(RealmModel realm, ResourceServer resourceServer, MapPermissionTicketEntity entity, StoreFactory storeFactory)
-
-
Method Details
-
getId
Description copied from interface:PermissionTicket
Returns the unique identifier for this instance.- Returns:
- the unique identifier for this instance
-
getOwner
Description copied from interface:PermissionTicket
Returns the resource's owner, which is usually an identifier that uniquely identifies the resource's owner.- Returns:
- the owner of this resource
-
getRequester
-
getResource
Description copied from interface:PermissionTicket
Returns theResource
associated with this instance- Returns:
- the
Resource
associated with this instance
-
getScope
Description copied from interface:PermissionTicket
Returns theScope
associated with this instance- Returns:
- the
Scope
associated with this instance
-
isGranted
public boolean isGranted() -
getCreatedTimestamp
-
getGrantedTimestamp
-
setGrantedTimestamp
-
getResourceServer
Description copied from interface:PermissionTicket
Returns theResourceServer
where this policy belongs to.- Returns:
- a resource server
-
getPolicy
-
setPolicy
-
toString
-