Class TransientIdentity

java.lang.Object
pl.edu.icm.unity.stdext.identity.AbstractIdentityTypeProvider
pl.edu.icm.unity.stdext.identity.TransientIdentity
All Implemented Interfaces:
pl.edu.icm.unity.engine.api.identity.DynamicIdentityTypeDefinition, pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition

@Component public class TransientIdentity extends AbstractIdentityTypeProvider implements pl.edu.icm.unity.engine.api.identity.DynamicIdentityTypeDefinition
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
  • Field Details

  • Constructor Details

    • TransientIdentity

      public TransientIdentity()
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
    • getDefaultDescriptionKey

      public String getDefaultDescriptionKey()
      Specified by:
      getDefaultDescriptionKey in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
    • isRemovable

      public boolean isRemovable()
      Description copied from class: AbstractIdentityTypeProvider
      Most of the implementations are removable
      Specified by:
      isRemovable in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
      Overrides:
      isRemovable in class AbstractIdentityTypeProvider
    • validate

      public void validate(String value)
      Specified by:
      validate in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
    • getComparableValue

      public String getComparableValue(String from, String realm, String target)
      Specified by:
      getComparableValue in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
    • toPrettyStringNoPrefix

      public String toPrettyStringNoPrefix(pl.edu.icm.unity.base.identity.IdentityParam from)
      Specified by:
      toPrettyStringNoPrefix in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
    • createNewIdentity

      public pl.edu.icm.unity.base.identity.Identity createNewIdentity(String realm, String target, long entityId)
      Specified by:
      createNewIdentity in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
    • isExpired

      public boolean isExpired(pl.edu.icm.unity.base.identity.Identity representation)
      Specified by:
      isExpired in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
    • isTargeted

      public boolean isTargeted()
      Specified by:
      isTargeted in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
    • toHumanFriendlyString

      public String toHumanFriendlyString(pl.edu.icm.unity.base.message.MessageSource msg, pl.edu.icm.unity.base.identity.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.base.message.MessageSource msg)
      Specified by:
      getHumanFriendlyDescription in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
    • isEmailVerifiable

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

      public String getHumanFriendlyName(pl.edu.icm.unity.base.message.MessageSource msg)
      Specified by:
      getHumanFriendlyName in interface pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition