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
    • Constructor Detail

      • EmailIdentity

        public EmailIdentity()
    • Method Detail

      • getId

        public java.lang.String getId()
      • getDefaultDescriptionKey

        public java.lang.String getDefaultDescriptionKey()
      • validate

        public void validate​(java.lang.String value)
                      throws pl.edu.icm.unity.exceptions.IllegalIdentityValueException
        Throws:
        pl.edu.icm.unity.exceptions.IllegalIdentityValueException
      • convertFromString

        public pl.edu.icm.unity.types.basic.IdentityParam convertFromString​(java.lang.String stringRepresentation,
                                                                            java.lang.String remoteIdp,
                                                                            java.lang.String translationProfile)
                                                                     throws pl.edu.icm.unity.exceptions.IllegalIdentityValueException
        Specified by:
        convertFromString in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
        Overrides:
        convertFromString in class AbstractIdentityTypeProvider
        Throws:
        pl.edu.icm.unity.exceptions.IllegalIdentityValueException
      • toIdentityParam

        public static pl.edu.icm.unity.types.basic.IdentityParam toIdentityParam​(pl.edu.icm.unity.types.basic.VerifiableEmail email,
                                                                                 java.lang.String remoteIdp,
                                                                                 java.lang.String translationProfile)
      • fromIdentityParam

        public static pl.edu.icm.unity.types.basic.VerifiableEmail fromIdentityParam​(pl.edu.icm.unity.types.basic.IdentityParam idParam)
      • getComparableValue

        public java.lang.String getComparableValue​(java.lang.String from,
                                                   java.lang.String realm,
                                                   java.lang.String target)
      • toPrettyStringNoPrefix

        public java.lang.String toPrettyStringNoPrefix​(pl.edu.icm.unity.types.basic.IdentityParam from)
      • getHumanFriendlyDescription

        public java.lang.String getHumanFriendlyDescription​(pl.edu.icm.unity.MessageSource msg)
      • getHumanFriendlyName

        public java.lang.String getHumanFriendlyName​(pl.edu.icm.unity.MessageSource msg)