Class DelegationConsentResult

Object
se.curity.identityserver.sdk.data.authorization.DelegationConsentResult

public final class DelegationConsentResult extends Object
Represents the consent result stored in a delegation.
Since:
4.2.0
  • Constructor Details

    • DelegationConsentResult

      public DelegationConsentResult(String consentorId, ConsentorResultAttributes consentorResultAttributes)
      Parameters:
      consentorId - the identifier for the consentor used in the consent process.
      consentorResultAttributes - the consentor result attributes.
  • Method Details

    • getConsentorId

      public String getConsentorId()
      Returns:
      the identifier for the consentor used in the consent process.
    • getConsentorResultAttributes

      public ConsentorResultAttributes getConsentorResultAttributes()
      Returns:
      the consentor result attributes.
    • asMap

      public Map<String,Object> asMap()
      Creates a map with the serialization of this consent result.
      Returns:
      a map with the serialization of this consent result.
    • fromMap

      @Nullable public static @Nullable DelegationConsentResult fromMap(Map<?,?> map)
      Tries to deserialize a DelegationConsentResult from a map.
      Parameters:
      map - the map with the serialization.
      Returns:
      the deserialized DelegationConsentResult
    • equals

      public boolean equals(Object otherObj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object