2525import com .onelogin .saml2 .authn .SamlResponse ;
2626import com .onelogin .saml2 .exception .SettingsException ;
2727import com .onelogin .saml2 .exception .Error ;
28- import com .onelogin .saml2 .exception .XMLEntityException ;
2928import com .onelogin .saml2 .http .HttpRequest ;
3029import com .onelogin .saml2 .logout .LogoutRequest ;
3130import com .onelogin .saml2 .logout .LogoutResponse ;
@@ -493,12 +492,11 @@ public void login(String returnTo) throws IOException, SettingsException {
493492 * @return the SLO URL with the LogoutRequest if stay = True
494493 *
495494 * @throws IOException
496- * @throws XMLEntityException
497495 * @throws SettingsException
498496 */
499497 public String logout (String returnTo , String nameId , String sessionIndex , Boolean stay , String nameidFormat ,
500498 String nameIdNameQualifier , String nameIdSPNameQualifier )
501- throws IOException , XMLEntityException , SettingsException {
499+ throws IOException , SettingsException {
502500 Map <String , String > parameters = new HashMap <String , String >();
503501 return logout (returnTo , nameId , sessionIndex , stay , nameidFormat ,
504502 nameIdNameQualifier , nameIdSPNameQualifier , parameters );
@@ -528,12 +526,11 @@ public String logout(String returnTo, String nameId, String sessionIndex, Boolea
528526 * @return the SLO URL with the LogoutRequest if stay = True
529527 *
530528 * @throws IOException
531- * @throws XMLEntityException
532529 * @throws SettingsException
533530 */
534531 public String logout (String returnTo , String nameId , String sessionIndex , Boolean stay , String nameidFormat ,
535532 String nameIdNameQualifier , String nameIdSPNameQualifier , Map <String , String > parameters )
536- throws IOException , XMLEntityException , SettingsException {
533+ throws IOException , SettingsException {
537534
538535 if (parameters == null ) {
539536 parameters = new HashMap <String , String >();
@@ -593,11 +590,10 @@ public String logout(String returnTo, String nameId, String sessionIndex, Boolea
593590 * @return the SLO URL with the LogoutRequest if stay = True
594591 *
595592 * @throws IOException
596- * @throws XMLEntityException
597593 * @throws SettingsException
598594 */
599595 public String logout (String returnTo , String nameId , String sessionIndex , Boolean stay , String nameidFormat ,
600- String nameIdNameQualifier ) throws IOException , XMLEntityException , SettingsException {
596+ String nameIdNameQualifier ) throws IOException , SettingsException {
601597 return logout (returnTo , nameId , sessionIndex , stay , nameidFormat , nameIdNameQualifier , null );
602598 }
603599
@@ -618,11 +614,10 @@ public String logout(String returnTo, String nameId, String sessionIndex, Boolea
618614 * @return the SLO URL with the LogoutRequest if stay = True
619615 *
620616 * @throws IOException
621- * @throws XMLEntityException
622617 * @throws SettingsException
623618 */
624619 public String logout (String returnTo , String nameId , String sessionIndex , Boolean stay , String nameidFormat )
625- throws IOException , XMLEntityException , SettingsException {
620+ throws IOException , SettingsException {
626621 return logout (returnTo , nameId , sessionIndex , stay , nameidFormat , null );
627622 }
628623
@@ -642,11 +637,10 @@ public String logout(String returnTo, String nameId, String sessionIndex, Boolea
642637 * @return the SLO URL with the LogoutRequest if stay = True
643638 *
644639 * @throws IOException
645- * @throws XMLEntityException
646640 * @throws SettingsException
647641 */
648642 public String logout (String returnTo , String nameId , String sessionIndex , Boolean stay )
649- throws IOException , XMLEntityException , SettingsException {
643+ throws IOException , SettingsException {
650644 return logout (returnTo , nameId , sessionIndex , stay , null );
651645 }
652646
@@ -668,12 +662,11 @@ public String logout(String returnTo, String nameId, String sessionIndex, Boolea
668662 * @param nameIdSPNameQualifier The NameID SP Name Qualifier that will be set in
669663 * the LogoutRequest.
670664 * @throws IOException
671- * @throws XMLEntityException
672665 * @throws SettingsException
673666 */
674667 public void logout (String returnTo , String nameId , String sessionIndex , String nameidFormat ,
675668 String nameIdNameQualifier , String nameIdSPNameQualifier )
676- throws IOException , XMLEntityException , SettingsException {
669+ throws IOException , SettingsException {
677670 logout (returnTo , nameId , sessionIndex , false , nameidFormat , nameIdNameQualifier , nameIdSPNameQualifier );
678671 }
679672
@@ -693,11 +686,10 @@ public void logout(String returnTo, String nameId, String sessionIndex, String n
693686 * LogoutRequest.
694687 *
695688 * @throws IOException
696- * @throws XMLEntityException
697689 * @throws SettingsException
698690 */
699691 public void logout (String returnTo , String nameId , String sessionIndex , String nameidFormat ,
700- String nameIdNameQualifier ) throws IOException , XMLEntityException , SettingsException {
692+ String nameIdNameQualifier ) throws IOException , SettingsException {
701693 logout (returnTo , nameId , sessionIndex , false , nameidFormat , nameIdNameQualifier );
702694 }
703695
@@ -713,11 +705,10 @@ public void logout(String returnTo, String nameId, String sessionIndex, String n
713705 * process).
714706 * @param nameidFormat The NameID Format will be set in the LogoutRequest.
715707 * @throws IOException
716- * @throws XMLEntityException
717708 * @throws SettingsException
718709 */
719710 public void logout (String returnTo , String nameId , String sessionIndex , String nameidFormat )
720- throws IOException , XMLEntityException , SettingsException {
711+ throws IOException , SettingsException {
721712 logout (returnTo , nameId , sessionIndex , false , nameidFormat );
722713 }
723714
@@ -733,22 +724,20 @@ public void logout(String returnTo, String nameId, String sessionIndex, String n
733724 * process).
734725 *
735726 * @throws IOException
736- * @throws XMLEntityException
737727 * @throws SettingsException
738728 */
739729 public void logout (String returnTo , String nameId , String sessionIndex )
740- throws IOException , XMLEntityException , SettingsException {
730+ throws IOException , SettingsException {
741731 logout (returnTo , nameId , sessionIndex , false , null );
742732 }
743733
744734 /**
745735 * Initiates the SLO process.
746736 *
747737 * @throws IOException
748- * @throws XMLEntityException
749738 * @throws SettingsException
750739 */
751- public void logout () throws IOException , XMLEntityException , SettingsException {
740+ public void logout () throws IOException , SettingsException {
752741 logout (null , null , null , false );
753742 }
754743
@@ -760,10 +749,9 @@ public void logout() throws IOException, XMLEntityException, SettingsException {
760749 * appended at all when an empty string is provided
761750 *
762751 * @throws IOException
763- * @throws XMLEntityException
764752 * @throws SettingsException
765753 */
766- public void logout (String returnTo ) throws IOException , XMLEntityException , SettingsException {
754+ public void logout (String returnTo ) throws IOException , SettingsException {
767755 logout (returnTo , null , null );
768756 }
769757
0 commit comments