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

      • UsernameIdentity

        public UsernameIdentity()
    • Method Detail

      • getId

        public String getId()
      • getDefaultDescriptionKey

        public String getDefaultDescriptionKey()
      • validate

        public void validate​(String value)
      • convertFromString

        public pl.edu.icm.unity.types.basic.IdentityParam convertFromString​(String stringRepresentation,
                                                                            String remoteIdp,
                                                                            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
      • toPrettyStringNoPrefix

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

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

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