code: @Override
      public Subject authenticate(String username, @Sensitive String password) throws AuthenticationException {
          AuthenticationData authenticationData = createAuthenticationData(username, password);
          return authenticationService.authenticate(jaasEntryName, authenticationData, null);
      }
docs: Authenticate with user name and password.
  
  @param username
  @param password
  @return The authenticated subject.
  @throws AuthenticationException