Class UsernameIdentity

All Implemented Interfaces:
pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition

@Component public class UsernameIdentity extends AbstractStaticIdentityTypeProvider
Simple username identity type definition
Author:
K. Benedyczak
  • Field Details

  • Constructor Details

    • UsernameIdentity

      public UsernameIdentity()
  • Method Details

    • getId

      public String getId()
    • getDefaultDescriptionKey

      public String getDefaultDescriptionKey()
    • validate

      public void validate(String value)
    • convertFromString

      public pl.edu.icm.unity.base.identity.IdentityParam convertFromString(String stringRepresentation, String remoteIdp, String translationProfile) throws pl.edu.icm.unity.base.identity.IllegalIdentityValueException
      Specified by:
      convertFromString in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
      Overrides:
      convertFromString in class AbstractIdentityTypeProvider
      Throws:
      pl.edu.icm.unity.base.identity.IllegalIdentityValueException
    • getComparableValue

      public String getComparableValue(String from, String realm, String target)
    • toPrettyStringNoPrefix

      public String toPrettyStringNoPrefix(pl.edu.icm.unity.base.identity.IdentityParam from)
    • getHumanFriendlyDescription

      public String getHumanFriendlyDescription(pl.edu.icm.unity.base.message.MessageSource msg)
    • isDynamic

      public boolean isDynamic()
      Specified by:
      isDynamic in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
      Overrides:
      isDynamic in class AbstractStaticIdentityTypeProvider
    • getHumanFriendlyName

      public String getHumanFriendlyName(pl.edu.icm.unity.base.message.MessageSource msg)