public static Map < String , Object > createFormParamSignIn ( String username , String password , Boolean isSaml ) { if ( username == null ) { throw new IllegalArgumentException ( "Missing the required parameter 'username'" ) ; } if ( password == null ) { throw new IllegalArgumentException ( "Missing the required parameter 'password'" ) ; } Map < String , Object > formParams = new HashMap <> ( ) ; formParams . put ( "username" , username ) ; formParams . put ( "password" , password ) ; if ( isSaml != null ) { formParams . put ( "saml" , isSaml ) ; } return formParams ; }
Build form parameters to sign in