Class MSISDNValidation
- java.lang.Object
-
- com.sun.identity.authentication.modules.msisdn.MSISDNValidation
-
public class MSISDNValidation extends Object
A class that searches LDAP for the user having attributesunIdentityMSISDNNumbermatching the authentication client's devicemsisdnnumber. LDAP user distinguished name is returned on a successful search.
-
-
Field Summary
Fields Modifier and Type Field Description protected static AMResourceBundleCacheamCacheHolds handle to ResourceBundleCache to quickly get ResourceBundle for any Locale
-
Constructor Summary
Constructors Modifier Constructor Description protectedMSISDNValidation(Map options, Debug debug, ResourceBundle bundle, Locale locale)CreatesMSISNValidationand set up the configuration to search LDAP formsisdnnumber.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetUserId(String msisdnNumber)Returns user ID which hassunIdentityMSISDNNumbermatching themsisdnnumber.
-
-
-
Field Detail
-
amCache
protected static AMResourceBundleCache amCache
Holds handle to ResourceBundleCache to quickly get ResourceBundle for any Locale
-
-
Constructor Detail
-
MSISDNValidation
protected MSISDNValidation(Map options, Debug debug, ResourceBundle bundle, Locale locale) throws AuthLoginException
CreatesMSISNValidationand set up the configuration to search LDAP formsisdnnumber.- Parameters:
options- configuration parameters to setup search in LDAP.debug- for logging debug messages.bundle- resource bundle for locale specific properties.locale- login locale.- Throws:
AuthLoginException
-
-
Method Detail
-
getUserId
protected String getUserId(String msisdnNumber) throws AuthLoginException
Returns user ID which hassunIdentityMSISDNNumbermatching themsisdnnumber.- Parameters:
msisdnNumber- to search.- Throws:
AuthLoginException
-
-