Skip to content

Commit abd6326

Browse files
committed
Move message factories to their own package
1 parent 1246cd5 commit abd6326

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

toolkit/src/main/java/com/onelogin/saml2/Auth.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
import com.onelogin.saml2.authn.AuthnRequestParams;
2727
import com.onelogin.saml2.authn.SamlResponse;
2828
import com.onelogin.saml2.exception.SettingsException;
29+
import com.onelogin.saml2.factory.SamlOutgoingMessageFactory;
30+
import com.onelogin.saml2.factory.SamlReceivedMessageFactory;
2931
import com.onelogin.saml2.exception.Error;
3032
import com.onelogin.saml2.http.HttpRequest;
3133
import com.onelogin.saml2.logout.LogoutRequest;

toolkit/src/main/java/com/onelogin/saml2/SamlOutgoingMessageFactory.java renamed to toolkit/src/main/java/com/onelogin/saml2/factory/SamlOutgoingMessageFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.onelogin.saml2;
1+
package com.onelogin.saml2.factory;
22

33
import com.onelogin.saml2.settings.Saml2Settings;
44

toolkit/src/main/java/com/onelogin/saml2/SamlReceivedMessageFactory.java renamed to toolkit/src/main/java/com/onelogin/saml2/factory/SamlReceivedMessageFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.onelogin.saml2;
1+
package com.onelogin.saml2.factory;
22

33
import com.onelogin.saml2.http.HttpRequest;
44
import com.onelogin.saml2.settings.Saml2Settings;

toolkit/src/test/java/com/onelogin/saml2/test/AuthTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2237,7 +2237,7 @@ private static class FactoryInvokedException extends RuntimeException {
22372237
*
22382238
* @throws Exception
22392239
*
2240-
* @see com.onelogin.saml2.Auth#setAuthnRequestFactory(com.onelogin.saml2.SamlOutgoingMessageFactory)
2240+
* @see com.onelogin.saml2.Auth#setAuthnRequestFactory(com.onelogin.saml2.factory.SamlOutgoingMessageFactory)
22412241
*/
22422242
@Test(expected = FactoryInvokedException.class)
22432243
public void testAuthnRequestFactory() throws Exception {
@@ -2266,7 +2266,7 @@ public AuthnRequestEx(Saml2Settings sett, AuthnRequestParams par) {
22662266
*
22672267
* @throws Exception
22682268
*
2269-
* @see com.onelogin.saml2.Auth#setSamlResponseFactory(com.onelogin.saml2.SamlReceivedMessageFactory)
2269+
* @see com.onelogin.saml2.Auth#setSamlResponseFactory(com.onelogin.saml2.factory.SamlReceivedMessageFactory)
22702270
*/
22712271
@Test(expected = FactoryInvokedException.class)
22722272
public void testSamlResponseFactory() throws Exception {
@@ -2298,7 +2298,7 @@ public SamlResponseEx(Saml2Settings sett, HttpRequest req) throws Exception {
22982298
*
22992299
* @throws Exception
23002300
*
2301-
* @see com.onelogin.saml2.Auth#setOutgoingLogoutRequestFactory(com.onelogin.saml2.SamlOutgoingMessageFactory)
2301+
* @see com.onelogin.saml2.Auth#setOutgoingLogoutRequestFactory(com.onelogin.saml2.factory.SamlOutgoingMessageFactory)
23022302
*/
23032303
@Test(expected = FactoryInvokedException.class)
23042304
public void testOutgoingLogoutRequestFactory() throws Exception {
@@ -2329,7 +2329,7 @@ public LogoutRequestEx(Saml2Settings sett, LogoutRequestParams par) {
23292329
*
23302330
* @throws Exception
23312331
*
2332-
* @see com.onelogin.saml2.Auth#setReceivedLogoutRequestFactory(com.onelogin.saml2.SamlReceivedMessageFactory)
2332+
* @see com.onelogin.saml2.Auth#setReceivedLogoutRequestFactory(com.onelogin.saml2.factory.SamlReceivedMessageFactory)
23332333
*/
23342334
@Test(expected = FactoryInvokedException.class)
23352335
public void testReceivedLogoutRequestFactory() throws Exception {
@@ -2364,7 +2364,7 @@ public LogoutRequestEx(Saml2Settings sett, HttpRequest req) {
23642364
*
23652365
* @throws Exception
23662366
*
2367-
* @see com.onelogin.saml2.Auth#setOutgoingLogoutResponseFactory(com.onelogin.saml2.SamlOutgoingMessageFactory)
2367+
* @see com.onelogin.saml2.Auth#setOutgoingLogoutResponseFactory(com.onelogin.saml2.factory.SamlOutgoingMessageFactory)
23682368
*/
23692369
@Test(expected = FactoryInvokedException.class)
23702370
public void testOutgoingLogoutResponseFactory() throws Exception {
@@ -2399,7 +2399,7 @@ public LogoutResponseEx(Saml2Settings sett, HttpRequest req) {
23992399
*
24002400
* @throws Exception
24012401
*
2402-
* @see com.onelogin.saml2.Auth#setReceivedLogoutResponseFactory(com.onelogin.saml2.SamlReceivedMessageFactory)
2402+
* @see com.onelogin.saml2.Auth#setReceivedLogoutResponseFactory(com.onelogin.saml2.factory.SamlReceivedMessageFactory)
24032403
*/
24042404
@Test(expected = FactoryInvokedException.class)
24052405
public void testReceivedLogoutResponseFactory() throws Exception {

0 commit comments

Comments
 (0)