Class MSISDNValidation


  • public class MSISDNValidation
    extends Object
    A class that searches LDAP for the user having attribute sunIdentityMSISDNNumber matching the authentication client's device msisdn number. LDAP user distinguished name is returned on a successful search.
    • 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
        Creates MSISNValidation and set up the configuration to search LDAP for msisdn number.
        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 has sunIdentityMSISDNNumber matching the msisdn number.
        Parameters:
        msisdnNumber - to search.
        Throws:
        AuthLoginException - if the MSISDN number is invalid or the user cannot be looked up