Class AlternateIdentifier

    • Method Detail

      • externalId

        public final ExternalId externalId()

        The identifier issued to this resource by an external identity provider.

        Returns:
        The identifier issued to this resource by an external identity provider.
      • uniqueAttribute

        public final UniqueAttribute uniqueAttribute()

        An entity attribute that's unique to a specific entity.

        Returns:
        An entity attribute that's unique to a specific entity.
      • hashCode

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

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

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromExternalId

        public static AlternateIdentifier fromExternalId​(ExternalId externalId)
        Create an instance of this class with externalId() initialized to the given value.

        The identifier issued to this resource by an external identity provider.

        Parameters:
        externalId - The identifier issued to this resource by an external identity provider.
      • fromExternalId

        public static AlternateIdentifier fromExternalId​(Consumer<ExternalId.Builder> externalId)
        Create an instance of this class with externalId() initialized to the given value.

        The identifier issued to this resource by an external identity provider.

        Parameters:
        externalId - The identifier issued to this resource by an external identity provider.
      • fromUniqueAttribute

        public static AlternateIdentifier fromUniqueAttribute​(UniqueAttribute uniqueAttribute)
        Create an instance of this class with uniqueAttribute() initialized to the given value.

        An entity attribute that's unique to a specific entity.

        Parameters:
        uniqueAttribute - An entity attribute that's unique to a specific entity.
      • fromUniqueAttribute

        public static AlternateIdentifier fromUniqueAttribute​(Consumer<UniqueAttribute.Builder> uniqueAttribute)
        Create an instance of this class with uniqueAttribute() initialized to the given value.

        An entity attribute that's unique to a specific entity.

        Parameters:
        uniqueAttribute - An entity attribute that's unique to a specific entity.