Class PermissionTicket

java.lang.Object
org.forgerock.openam.uma.PermissionTicket
All Implemented Interfaces:
org.forgerock.openam.uma.UmaToken

@SupportedAll public class PermissionTicket extends Object implements org.forgerock.openam.uma.UmaToken
A POJO to represent the UMA Permission Ticket. See the UMA Spec for details.
  • Constructor Details

    • PermissionTicket

      public PermissionTicket(String id, JsonValue permissions, String resourceServerClientId, String authGrantId, Boolean issued)
    • PermissionTicket

      public PermissionTicket()
  • Method Details

    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getRealm

      public String getRealm()
    • setRealm

      public void setRealm(String realm)
    • getExpiryTime

      public Long getExpiryTime()
    • setExpiryTime

      public void setExpiryTime(Long expiryTime)
    • getResourceServerClientId

      public String getResourceServerClientId()
    • setResourceServerClientId

      public void setResourceServerClientId(String resourceServerClientId)
    • getClientClientId

      public String getClientClientId()
    • setClientClientId

      public void setClientClientId(String clientClientId)
    • incrementIteration

      public void incrementIteration()
      Increment the usage iteration of the ticket.
    • getIteration

      public int getIteration()
      Get the usage iteration of the ticket.
      Returns:
      The usage iteration count.
    • getContents

      public JsonValue getContents()
    • setContents

      public void setContents(JsonValue contents)
    • getGrantId

      public String getGrantId()
    • setGrantId

      public void setGrantId(String authGrantId)
    • getIssued

      public Boolean getIssued()
    • setIssued

      public void setIssued(Boolean issued)
    • getPermissions

      public JsonValue getPermissions()