Package pl.edu.icm.unity.stdext.identity
Class UsernameIdentity
- java.lang.Object
-
- pl.edu.icm.unity.stdext.identity.AbstractIdentityTypeProvider
-
- pl.edu.icm.unity.stdext.identity.AbstractStaticIdentityTypeProvider
-
- pl.edu.icm.unity.stdext.identity.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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringID
-
Constructor Summary
Constructors Constructor Description UsernameIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description pl.edu.icm.unity.types.basic.IdentityParamconvertFromString(java.lang.String stringRepresentation, java.lang.String remoteIdp, java.lang.String translationProfile)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()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.AbstractStaticIdentityTypeProvider
createNewIdentity, isEmailVerifiable, isExpired, isTargeted
-
Methods inherited from class pl.edu.icm.unity.stdext.identity.AbstractIdentityTypeProvider
equals, hashCode, isRemovable, toHumanFriendlyString, 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()
-
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:
convertFromStringin interfacepl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition- Overrides:
convertFromStringin classAbstractIdentityTypeProvider- 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)
-
isDynamic
public boolean isDynamic()
- Specified by:
isDynamicin interfacepl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition- Overrides:
isDynamicin classAbstractStaticIdentityTypeProvider
-
getHumanFriendlyName
public java.lang.String getHumanFriendlyName(pl.edu.icm.unity.MessageSource msg)
-
-