Class TransientIdentity

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

    @Component
    public class TransientIdentity
    extends AbstractIdentityTypeProvider
    Identity type which creates a different identifier for each target, which is valid only for a time span of a single login session.
    Author:
    K. Benedyczak
    • Constructor Detail

      • TransientIdentity

        public TransientIdentity()
    • Method Detail

      • getId

        public String getId()
      • getDefaultDescriptionKey

        public String getDefaultDescriptionKey()
      • validate

        public void validate​(String value)
      • toPrettyStringNoPrefix

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

        public boolean isDynamic()
      • createNewIdentity

        public pl.edu.icm.unity.types.basic.Identity createNewIdentity​(String realm,
                                                                       String target,
                                                                       long entityId)
      • isExpired

        public boolean isExpired​(pl.edu.icm.unity.types.basic.Identity representation)
      • isTargeted

        public boolean isTargeted()
      • toHumanFriendlyString

        public String toHumanFriendlyString​(pl.edu.icm.unity.MessageSource msg,
                                            pl.edu.icm.unity.types.basic.IdentityParam from)
        Description copied from class: AbstractIdentityTypeProvider
        Delegated to #toPrettyStringNoPrefix(String)
        Specified by:
        toHumanFriendlyString in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
        Overrides:
        toHumanFriendlyString in class AbstractIdentityTypeProvider
      • getHumanFriendlyDescription

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

        public boolean isEmailVerifiable()
      • getHumanFriendlyName

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