Interface ProblemDetails

All Superinterfaces:
SerializableAsMap

public interface ProblemDetails extends SerializableAsMap
A problem details object as defined in RFC-7807.

The problem+json response must contain a "type" URI and an associated "data model" containing details about a particular error.

The problem details object is instantiated via the object returned by the SerializableAsMap.asMap() method of the implementing class.

Curity Plugins may implement this interface. Use the ProblemRepresentationFactory.of(ProblemDetails, Consumer) method to return a problem response using an implementation of this interface.

Since:
5.4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<Message>
    The optional problem title.
    The type of this error.

    Methods inherited from interface se.curity.identityserver.sdk.attribute.SerializableAsMap

    asMap
  • Method Details

    • type

      String type()
      The type of this error.
      Returns:
      type of error
    • title

      default Optional<Message> title()
      The optional problem title.
      Returns:
      the title, if any.