code: public SAMLEndpointResponse getSAMLAssertion(String usernameOrEmail, String password, String appId, String subdomain) throws OAuthSystemException, OAuthProblemException, URISyntaxException {
  		return getSAMLAssertion(usernameOrEmail, password, appId, subdomain, null);
  	}
docs: Generates a SAML Assertion.
  
  @param usernameOrEmail
  username or email of the OneLogin user accessing the app
  @param password
  Password of the OneLogin user accessing the app
  @param appId
  App ID of the app for which you want to generate a SAML token
  @param subdomain
  subdomain of the OneLogin user accessing the app
  
  @return SAMLEndpointResponse
  
  @throws OAuthSystemException - if there is a IOException reading parameters of the httpURLConnection
  @throws OAuthProblemException - if there are errors validating the OneloginOAuthJSONResourceResponse and throwOAuthProblemException is enabled
  @throws URISyntaxException - if there is an error when generating the target URL at the URIBuilder constructor
  
  @see com.onelogin.sdk.model.SAMLEndpointResponse
  @see <a target="_blank" href="https://developers.onelogin.com/api-docs/1/saml-assertions/generate-saml-assertion">Generate SAML Assertion documentation</a>