Class NeedInfo

java.lang.Object
com.inrupt.client.uma.NeedInfo

public final class NeedInfo extends Object
A class representing a need_info error response from an UMA server.
  • Method Details

    • getRequiredClaims

      public List<RequiredClaims> getRequiredClaims()
      Return a list of required claims.
      Returns:
      the required claims, never null
    • getRedirectUser

      public Optional<URI> getRedirectUser()
      Return an optional redirect URI.
      Returns:
      a user redirection URI
    • getTicket

      public String getTicket()
      Return the ticket to be used when continuing this flow.
      Returns:
      the UMA ticket
    • ofErrorResponse

      public static Optional<NeedInfo> ofErrorResponse(ErrorResponse error)
      Create an optional NeedInfo object from an ErrorResponse.
      Parameters:
      error - the error response
      Returns:
      the optional need_info data