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 java.lang.String getId()
      • getDefaultDescriptionKey

        public java.lang.String getDefaultDescriptionKey()
      • validate

        public void validate​(java.lang.String value)
      • 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
      • 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)