Class IdentityTaV

java.lang.Object
pl.edu.icm.unity.types.basic.IdentityTaV
Direct Known Subclasses:
IdentityParam

public class IdentityTaV extends Object
Represents an identity type and value. This class is useful to address existing identity as a parameter.

Optionally a target can be set. Then the identity can be resolved for the specified receiver.

Author:
K. Benedyczak
  • Field Details

    • value

      protected String value
    • target

      protected String target
    • realm

      protected String realm
  • Constructor Details

    • IdentityTaV

      public IdentityTaV(String type, String value)
    • IdentityTaV

      public IdentityTaV(String type, String value, String target, String realm)
    • IdentityTaV

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

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

    • getValue

      public String getValue()
    • getTypeId

      public String getTypeId()
    • setTypeId

      public void setTypeId(String type)
    • setValue

      public void setValue(String value)
    • getTarget

      public String getTarget()
    • setTarget

      public void setTarget(String target)
    • getRealm

      public String getRealm()
      Returns:
      authentication realm in which this identity is applicable or null when it is not realm specific.
    • setRealm

      public void setRealm(String realm)
    • toJson

      public com.fasterxml.jackson.databind.node.ObjectNode toJson()
    • toJsonBase

      public com.fasterxml.jackson.databind.node.ObjectNode toJsonBase()
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      full String representation
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object