code: public Authentication getAuthentication() {
          String username = getValueModel(LoginDetails.PROPERTY_USERNAME, String.class).getValue();
          String password = getValueModel(LoginDetails.PROPERTY_PASSWORD, String.class).getValue();
          return new UsernamePasswordAuthenticationToken( username, password );
      }
docs: Get an Authentication token that contains the current username and password.
  @return authentication token