Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ist-unix
CAS-server
Commits
1b19d087
Commit
1b19d087
authored
Sep 23, 2015
by
Misagh Moayyed
Browse files
Refactored service responses into individual components
parent
34ad07dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
cas-server-support-saml/src/main/java/org/jasig/cas/support/saml/authentication/principal/GoogleAccountsService.java
View file @
1b19d087
...
...
@@ -22,7 +22,6 @@ package org.jasig.cas.support.saml.authentication.principal;
import
org.jasig.cas.authentication.principal.AbstractWebApplicationService
;
import
org.jasig.cas.authentication.principal.ResponseBuilder
;
import
org.jasig.cas.authentication.principal.WebApplicationService
;
import
org.jasig.cas.support.saml.util.GoogleSaml20ObjectBuilder
;
/**
* Implementation of a Service that supports Google Accounts (eventually a more
* generic SAML2 support will come).
...
...
@@ -34,8 +33,6 @@ public class GoogleAccountsService extends AbstractWebApplicationService {
private
static
final
long
serialVersionUID
=
6678711809842282833L
;
private
static
final
GoogleSaml20ObjectBuilder
BUILDER
=
new
GoogleSaml20ObjectBuilder
();
private
final
String
relayState
;
private
final
String
requestId
;
...
...
@@ -50,24 +47,7 @@ public class GoogleAccountsService extends AbstractWebApplicationService {
*/
protected
GoogleAccountsService
(
final
String
id
,
final
String
relayState
,
final
String
requestId
,
final
ResponseBuilder
<
WebApplicationService
>
responseBuilder
)
{
this
(
id
,
id
,
null
,
relayState
,
requestId
,
responseBuilder
);
}
/**
* Instantiates a new google accounts service.
*
* @param id the id
* @param originalUrl the original url
* @param artifactId the artifact id
* @param relayState the relay state
* @param requestId the request id
* @param responseBuilder the response builder
*/
protected
GoogleAccountsService
(
final
String
id
,
final
String
originalUrl
,
final
String
artifactId
,
final
String
relayState
,
final
String
requestId
,
final
ResponseBuilder
<
WebApplicationService
>
responseBuilder
)
{
super
(
id
,
originalUrl
,
artifactId
,
responseBuilder
);
super
(
id
,
id
,
null
,
responseBuilder
);
this
.
relayState
=
relayState
;
this
.
requestId
=
requestId
;
}
...
...
@@ -82,6 +62,7 @@ public class GoogleAccountsService extends AbstractWebApplicationService {
return
true
;
}
public
String
getRelayState
()
{
return
relayState
;
}
...
...
cas-server-support-saml/src/main/java/org/jasig/cas/support/saml/authentication/principal/SamlService.java
View file @
1b19d087
...
...
@@ -21,8 +21,6 @@ package org.jasig.cas.support.saml.authentication.principal;
import
org.jasig.cas.authentication.principal.AbstractWebApplicationService
;
import
org.jasig.cas.authentication.principal.ResponseBuilder
;
import
org.jasig.cas.authentication.principal.WebApplicationService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
/**
* Class to represent that this service wants to use SAML. We use this in
...
...
@@ -34,23 +32,13 @@ import org.slf4j.LoggerFactory;
*/
public
final
class
SamlService
extends
AbstractWebApplicationService
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
SamlService
.
class
);
/**
* Unique Id for serialization.
*/
private
static
final
long
serialVersionUID
=
-
6867572626767140223L
;
private
String
requestId
;
private
final
String
requestId
;
/**
* Instantiates a new SAML service.
*
* @param id the service id
*/
protected
SamlService
(
final
String
id
)
{
super
(
id
,
id
,
null
,
null
);
}
/**
* Instantiates a new SAML service.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment