Package pl.edu.icm.unity.stdext.identity
Class EmailIdentity
- java.lang.Object
-
- pl.edu.icm.unity.stdext.identity.AbstractIdentityTypeProvider
-
- pl.edu.icm.unity.stdext.identity.AbstractStaticIdentityTypeProvider
-
- pl.edu.icm.unity.stdext.identity.EmailIdentity
-
- All Implemented Interfaces:
pl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition
@Component public class EmailIdentity extends AbstractStaticIdentityTypeProvider
Email identity type definition- Author:
- P. Piernik
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringID
-
Constructor Summary
Constructors Constructor Description EmailIdentity()
-
Method Summary
All Methods Static 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)static pl.edu.icm.unity.types.basic.VerifiableEmailfromIdentityParam(pl.edu.icm.unity.types.basic.IdentityParam idParam)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()static pl.edu.icm.unity.types.basic.IdentityParamtoIdentityParam(pl.edu.icm.unity.types.basic.VerifiableEmail email, java.lang.String remoteIdp, java.lang.String translationProfile)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, 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) throws pl.edu.icm.unity.exceptions.IllegalIdentityValueException- Throws:
pl.edu.icm.unity.exceptions.IllegalIdentityValueException
-
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
-
toIdentityParam
public static pl.edu.icm.unity.types.basic.IdentityParam toIdentityParam(pl.edu.icm.unity.types.basic.VerifiableEmail email, java.lang.String remoteIdp, java.lang.String translationProfile)
-
fromIdentityParam
public static pl.edu.icm.unity.types.basic.VerifiableEmail fromIdentityParam(pl.edu.icm.unity.types.basic.IdentityParam idParam)
-
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
-
isEmailVerifiable
public boolean isEmailVerifiable()
- Specified by:
isEmailVerifiablein interfacepl.edu.icm.unity.engine.api.identity.IdentityTypeDefinition- Overrides:
isEmailVerifiablein classAbstractStaticIdentityTypeProvider
-
getHumanFriendlyName
public java.lang.String getHumanFriendlyName(pl.edu.icm.unity.MessageSource msg)
-
-