Class IdentityParam

java.lang.Object
pl.edu.icm.unity.types.basic.IdentityTaV
pl.edu.icm.unity.types.basic.IdentityParam
All Implemented Interfaces:
VerifiableElement
Direct Known Subclasses:
Identity

public class IdentityParam extends IdentityTaV implements VerifiableElement
This class is useful when creating a new Identity.
Author:
K. Benedyczak
  • Constructor Details

    • IdentityParam

      public IdentityParam(String type, String value)
    • IdentityParam

      public IdentityParam(String type, String value, String remoteIdp, String translationProfile)
    • IdentityParam

      public IdentityParam(com.fasterxml.jackson.databind.node.ObjectNode src)
    • IdentityParam

      public IdentityParam(String type, com.fasterxml.jackson.databind.node.ObjectNode src)
  • Method Details

    • isLocal

      public boolean isLocal()
    • getTranslationProfile

      public String getTranslationProfile()
    • getRemoteIdp

      public String getRemoteIdp()
    • setTranslationProfile

      public void setTranslationProfile(String translationProfile)
    • setRemoteIdp

      public void setRemoteIdp(String remoteIdp)
    • getMetadata

      public com.fasterxml.jackson.databind.JsonNode getMetadata()
    • setMetadata

      public void setMetadata(com.fasterxml.jackson.databind.JsonNode metadata)
    • setConfirmationInfo

      public void setConfirmationInfo(ConfirmationInfo confirmationData)
      Sets confirmation status of the identity. For identity types which does not support confirmations this setting is ignored. For other the confirmation status is handled automatically in the most cases.
      Specified by:
      setConfirmationInfo in interface VerifiableElement
    • getConfirmationInfo

      public ConfirmationInfo getConfirmationInfo()
      Specified by:
      getConfirmationInfo in interface VerifiableElement
    • isConfirmed

      public boolean isConfirmed()
      Description copied from interface: VerifiableElement
      Shorter version of getConfirmationInfo().isConfirmed(), also checking if the CI is not null.
      Specified by:
      isConfirmed in interface VerifiableElement
      Returns:
      true if element is properly verified
    • toJson

      public com.fasterxml.jackson.databind.node.ObjectNode toJson()
      Overrides:
      toJson in class IdentityTaV
    • toJsonBase

      public com.fasterxml.jackson.databind.node.ObjectNode toJsonBase()
      Overrides:
      toJsonBase in class IdentityTaV
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class IdentityTaV
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class IdentityTaV
    • toString

      public String toString()
      Overrides:
      toString in class IdentityTaV
      Returns:
      full String representation
    • toHumanReadableString

      public String toHumanReadableString()