Enum IdaIdMapping
- java.lang.Object
-
- java.lang.Enum<IdaIdMapping>
-
- io.mosip.authentication.common.service.impl.match.IdaIdMapping
-
- All Implemented Interfaces:
IdMapping,Serializable,Comparable<IdaIdMapping>
public enum IdaIdMapping extends Enum<IdaIdMapping> implements IdMapping
Mapping class for IDA.- Author:
- Dinesh Karuppiah.T
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDRESSLINE1The addressline1.ADDRESSLINE2The addressline2.ADDRESSLINE3The addressline3.AGEThe age.DOBThe dob.DOBTYPEThe dobtype.DYNAMICThe dynamic demographics ID Mapping.EMAILThe email.FACEThe face.FINGERPRINTThe fingerprint.FULLADDRESSThe fulladdress.GENDERThe gender.IRISThe iris.KEY_BINDED_TOKENSLEFTINDEXThe leftindex.LEFTIRISThe leftiris.LEFTLITTLEThe leftlittle.LEFTMIDDLEThe leftmiddle.LEFTRINGThe leftring.LEFTTHUMBThe leftthumb.LOCATION1The location1.LOCATION2The location2.LOCATION3The location3.MULTI_MODAL_BIOMETRICSThe multi modal biometrics.NAMEThe name.OTPThe otp.PASSWORDPHONEThe phone.PINThe pin.PINCODEThe pincode.RIGHTINDEXThe rightindex.RIGHTIRISThe rightiris.RIGHTLITTLEThe rightlittle.RIGHTMIDDLEThe rightmiddle.RIGHTRINGThe rightring.RIGHTTHUMBThe rightthumb.UNKNOWN_FACEThe unknown face.UNKNOWN_FINGERThe unknown finger.UNKNOWN_IRISThe unknown iris.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringconcatNames(String... values)Concat names.StringgetIdname()Gets the idname.static Optional<String>getIdNameForMapping(String mappingName, MappingConfig mappingConfig)Fetch Id name for Mapping.BiFunction<MappingConfig,MatchType,List<String>>getMappingFunction()Gets the mapping function.Set<IdMapping>getSubIdMappings()Gets the sub id mappings.StringgetSubType()Gets the sub type.StringgetType()Gets the type.static Set<IdMapping>setOf(IdMapping... idMapping)Sets the of.static IdaIdMappingvalueOf(String name)Returns the enum constant of this type with the specified name.static IdaIdMapping[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NAME
public static final IdaIdMapping NAME
The name.
-
DOB
public static final IdaIdMapping DOB
The dob.
-
DOBTYPE
public static final IdaIdMapping DOBTYPE
The dobtype.
-
AGE
public static final IdaIdMapping AGE
The age.
-
GENDER
public static final IdaIdMapping GENDER
The gender.
-
PHONE
public static final IdaIdMapping PHONE
The phone.
-
EMAIL
public static final IdaIdMapping EMAIL
The email.
-
ADDRESSLINE1
public static final IdaIdMapping ADDRESSLINE1
The addressline1.
-
ADDRESSLINE2
public static final IdaIdMapping ADDRESSLINE2
The addressline2.
-
ADDRESSLINE3
public static final IdaIdMapping ADDRESSLINE3
The addressline3.
-
LOCATION1
public static final IdaIdMapping LOCATION1
The location1.
-
LOCATION2
public static final IdaIdMapping LOCATION2
The location2.
-
LOCATION3
public static final IdaIdMapping LOCATION3
The location3.
-
PINCODE
public static final IdaIdMapping PINCODE
The pincode.
-
FULLADDRESS
public static final IdaIdMapping FULLADDRESS
The fulladdress.
-
OTP
public static final IdaIdMapping OTP
The otp.
-
PIN
public static final IdaIdMapping PIN
The pin.
-
LEFTINDEX
public static final IdaIdMapping LEFTINDEX
The leftindex.
-
LEFTLITTLE
public static final IdaIdMapping LEFTLITTLE
The leftlittle.
-
LEFTMIDDLE
public static final IdaIdMapping LEFTMIDDLE
The leftmiddle.
-
LEFTRING
public static final IdaIdMapping LEFTRING
The leftring.
-
LEFTTHUMB
public static final IdaIdMapping LEFTTHUMB
The leftthumb.
-
RIGHTINDEX
public static final IdaIdMapping RIGHTINDEX
The rightindex.
-
RIGHTLITTLE
public static final IdaIdMapping RIGHTLITTLE
The rightlittle.
-
RIGHTMIDDLE
public static final IdaIdMapping RIGHTMIDDLE
The rightmiddle.
-
RIGHTRING
public static final IdaIdMapping RIGHTRING
The rightring.
-
RIGHTTHUMB
public static final IdaIdMapping RIGHTTHUMB
The rightthumb.
-
UNKNOWN_FINGER
public static final IdaIdMapping UNKNOWN_FINGER
The unknown finger.
-
FINGERPRINT
public static final IdaIdMapping FINGERPRINT
The fingerprint.
-
LEFTIRIS
public static final IdaIdMapping LEFTIRIS
The leftiris.
-
RIGHTIRIS
public static final IdaIdMapping RIGHTIRIS
The rightiris.
-
UNKNOWN_IRIS
public static final IdaIdMapping UNKNOWN_IRIS
The unknown iris.
-
IRIS
public static final IdaIdMapping IRIS
The iris.
-
FACE
public static final IdaIdMapping FACE
The face.
-
UNKNOWN_FACE
public static final IdaIdMapping UNKNOWN_FACE
The unknown face.
-
MULTI_MODAL_BIOMETRICS
public static final IdaIdMapping MULTI_MODAL_BIOMETRICS
The multi modal biometrics.
-
KEY_BINDED_TOKENS
public static final IdaIdMapping KEY_BINDED_TOKENS
-
PASSWORD
public static final IdaIdMapping PASSWORD
-
DYNAMIC
public static final IdaIdMapping DYNAMIC
The dynamic demographics ID Mapping.
-
-
Method Detail
-
values
public static IdaIdMapping[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IdaIdMapping c : IdaIdMapping.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IdaIdMapping valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getIdname
public String getIdname()
Gets the idname.
-
getSubIdMappings
public Set<IdMapping> getSubIdMappings()
Gets the sub id mappings.- Specified by:
getSubIdMappingsin interfaceIdMapping- Returns:
- the sub id mappings
-
getType
public String getType()
Gets the type.
-
getSubType
public String getSubType()
Gets the sub type.- Specified by:
getSubTypein interfaceIdMapping- Returns:
- the sub type
-
getMappingFunction
public BiFunction<MappingConfig,MatchType,List<String>> getMappingFunction()
Gets the mapping function.- Specified by:
getMappingFunctionin interfaceIdMapping- Returns:
- the mapping function
-
setOf
public static Set<IdMapping> setOf(IdMapping... idMapping)
Sets the of.- Parameters:
idMapping- the id mapping- Returns:
- the sets the
-
getIdNameForMapping
public static Optional<String> getIdNameForMapping(String mappingName, MappingConfig mappingConfig)
Fetch Id name for Mapping.- Parameters:
mappingName- the mapping namemappingConfig- the mapping config- Returns:
- the id name for mapping
-
-