Class AuthorizationDetail


  • public class AuthorizationDetail
    extends Object
    Authorisation detail.

    Related specifications:

    • OAuth 2.0 Rich Authorization Requests (RFC 9396), section 2.
    • Method Detail

      • getLocations

        public List<LocationgetLocations()
        Returns the locations.
        Returns:
        The locations as an unmodifiable list, null if not specified.
      • getActions

        public List<ActiongetActions()
        Returns the actions.
        Returns:
        The actions as an unmodifiable list, null if not specified.
      • getDataTypes

        public List<DataTypegetDataTypes()
        Returns the data types.
        Returns:
        The data type as an unmodifiable list, null if not specified.
      • getIdentifier

        public Identifier getIdentifier()
        Returns the identifier.
        Returns:
        The identifier, null if not specified.
      • getPrivileges

        public List<PrivilegegetPrivileges()
        Returns the privileges.
        Returns:
        The privileges as an unmodifiable list, null if not specified.
      • getField

        public Object getField​(String name)
        Returns the field with the specified name.
        Parameters:
        name - The field name.
        Returns:
        The field value, null if not specified.
      • getStringField

        public String getStringField​(String name)
        Returns the string field with the specified name.
        Parameters:
        name - The field name.
        Returns:
        The field value, null if not specified or parsing failed.
      • getStringListField

        public List<StringgetStringListField​(String name)
        Returns the string list field with the specified name.
        Parameters:
        name - The field name.
        Returns:
        The field value, null if not specified or parsing failed.
      • getJSONObjectField

        public net.minidev.json.JSONObject getJSONObjectField​(String name)
        Returns the JSON object field with the specified name.
        Parameters:
        name - The field name.
        Returns:
        The field value, null if not specified or parsing failed.
      • toJSONObject

        public net.minidev.json.JSONObject toJSONObject()
        Returns a JSON object representation of this authorisation detail.
        Returns:
        The JSON object.
      • toJSONString

        public static String toJSONString​(List<AuthorizationDetail> details)
        Returns the JSON array string representation of the specified authorisation details.
        Parameters:
        details - The authorisation details. Must not be null.
        Returns:
        The JSON string.
      • parse

        public static AuthorizationDetail parse​(net.minidev.json.JSONObject jsonObject)
                                         throws ParseException
        Parses an authorisation detail from the specified JSON object.
        Parameters:
        jsonObject - The JSON object. Must not be null.
        Returns:
        The authorisation detail.
        Throws:
        ParseException - If parsing failed.
      • parseList

        public static List<AuthorizationDetailparseList​(List<net.minidev.json.JSONObject> jsonObjects)
                                                   throws ParseException
        Parses an authorisation details list from the specified JSON objects list.
        Parameters:
        jsonObjects - The JSON objects list. Must not be null.
        Returns:
        The authorisation details, as unmodifiable list.
        Throws:
        ParseException - If parsing failed.
      • parseList

        public static List<AuthorizationDetailparseList​(String json)
                                                   throws ParseException
        Parses an authorisation details list from the specified JSON array string.
        Parameters:
        json - The JSON string. Must not be null.
        Returns:
        The authorisation details, as unmodifiable list.
        Throws:
        ParseException - If parsing failed.