Class EmailIdentity

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

@Component public class EmailIdentity extends AbstractStaticIdentityTypeProvider
Email identity type definition
Author:
P. Piernik
  • Field Details

  • Constructor Details

    • EmailIdentity

      public EmailIdentity()
  • Method Details

    • getId

      public String getId()
    • getDefaultDescriptionKey

      public String getDefaultDescriptionKey()
    • validate

      public void validate(String value) throws pl.edu.icm.unity.base.identity.IllegalIdentityValueException
      Throws:
      pl.edu.icm.unity.base.identity.IllegalIdentityValueException
    • 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
    • toIdentityParam

      public static pl.edu.icm.unity.base.identity.IdentityParam toIdentityParam(pl.edu.icm.unity.base.verifiable.VerifiableEmail email, String remoteIdp, String translationProfile)
    • fromIdentityParam

      public static pl.edu.icm.unity.base.verifiable.VerifiableEmail fromIdentityParam(pl.edu.icm.unity.base.identity.IdentityParam idParam)
    • 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
    • isEmailVerifiable

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

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