Class PropertyFileLoginModule

  • All Implemented Interfaces:
    javax.security.auth.spi.LoginModule

    public class PropertyFileLoginModule
    extends AbstractLoginModule
    PropertyFileLoginModule
    • Field Detail

      • DEFAULT_FILENAME

        public static final java.lang.String DEFAULT_FILENAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • PropertyFileLoginModule

        public PropertyFileLoginModule()
    • Method Detail

      • initialize

        public void initialize​(javax.security.auth.Subject subject,
                               javax.security.auth.callback.CallbackHandler callbackHandler,
                               java.util.Map<java.lang.String,​?> sharedState,
                               java.util.Map<java.lang.String,​?> options)
        Use a PropertyUserStore to read the authentication and authorizaton information contained in the file named by the option "file".
        Specified by:
        initialize in interface javax.security.auth.spi.LoginModule
        Overrides:
        initialize in class AbstractLoginModule
        Parameters:
        subject - the subject
        callbackHandler - the callback handler
        sharedState - the shared state map
        options - the options map
        See Also:
        LoginModule.initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map)
      • getUserInfo

        public UserInfo getUserInfo​(java.lang.String userName)
                             throws java.lang.Exception
        Specified by:
        getUserInfo in class AbstractLoginModule
        Parameters:
        userName - the user name
        Throws:
        java.lang.Exception - if unable to get the user information