Package pl.edu.icm.unity.stdext.identity
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.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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringID
-
Constructor Summary
Constructors Constructor Description TransientIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description pl.edu.icm.unity.types.basic.IdentitycreateNewIdentity(java.lang.String realm, java.lang.String target, long entityId)java.lang.StringgetComparableValue(java.lang.String from, java.lang.String realm, java.lang.String target)java.lang.StringgetDefaultDescriptionKey()java.lang.StringgetHumanFriendlyDescription(pl.edu.icm.unity.MessageSource msg)java.lang.StringgetHumanFriendlyName(pl.edu.icm.unity.MessageSource msg)java.lang.StringgetId()booleanisDynamic()booleanisEmailVerifiable()booleanisExpired(pl.edu.icm.unity.types.basic.Identity representation)booleanisRemovable()Most of the implementations are removablebooleanisTargeted()java.lang.StringtoHumanFriendlyString(pl.edu.icm.unity.MessageSource msg, pl.edu.icm.unity.types.basic.IdentityParam from)Delegated to#toPrettyStringNoPrefix(String)java.lang.StringtoPrettyStringNoPrefix(pl.edu.icm.unity.types.basic.IdentityParam from)voidvalidate(java.lang.String value)-
Methods inherited from class pl.edu.icm.unity.stdext.identity.AbstractIdentityTypeProvider
convertFromString, equals, hashCode, toPrettyString, toString, toString
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public java.lang.String getId()
-
getDefaultDescriptionKey
public java.lang.String getDefaultDescriptionKey()
-
isRemovable
public boolean isRemovable()
Description copied from class:AbstractIdentityTypeProviderMost of the implementations are removable- Specified by:
isRemovablein interfacepl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition- Overrides:
isRemovablein classAbstractIdentityTypeProvider
-
validate
public void validate(java.lang.String value)
-
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)
-
isDynamic
public boolean isDynamic()
-
createNewIdentity
public pl.edu.icm.unity.types.basic.Identity createNewIdentity(java.lang.String realm, java.lang.String target, long entityId)
-
isExpired
public boolean isExpired(pl.edu.icm.unity.types.basic.Identity representation)
-
isTargeted
public boolean isTargeted()
-
toHumanFriendlyString
public java.lang.String toHumanFriendlyString(pl.edu.icm.unity.MessageSource msg, pl.edu.icm.unity.types.basic.IdentityParam from)Description copied from class:AbstractIdentityTypeProviderDelegated to#toPrettyStringNoPrefix(String)- Specified by:
toHumanFriendlyStringin interfacepl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition- Overrides:
toHumanFriendlyStringin classAbstractIdentityTypeProvider
-
getHumanFriendlyDescription
public java.lang.String getHumanFriendlyDescription(pl.edu.icm.unity.MessageSource msg)
-
isEmailVerifiable
public boolean isEmailVerifiable()
-
getHumanFriendlyName
public java.lang.String getHumanFriendlyName(pl.edu.icm.unity.MessageSource msg)
-
-