public class OpenIdServiceResponseBuilder
extends org.apereo.cas.authentication.principal.AbstractWebApplicationServiceResponseBuilder
| Constructor and Description |
|---|
OpenIdServiceResponseBuilder(java.lang.String openIdPrefixUrl,
org.openid4java.server.ServerManager serverManager,
org.apereo.cas.CentralAuthenticationService centralAuthenticationService,
org.apereo.cas.services.ServicesManager servicesManager) |
| Modifier and Type | Method and Description |
|---|---|
org.apereo.cas.authentication.principal.Response |
build(org.apereo.cas.authentication.principal.WebApplicationService webApplicationService,
java.lang.String ticketId,
org.apereo.cas.authentication.Authentication authentication)
Generates an Openid response.
|
protected org.apereo.cas.authentication.principal.Response |
buildAuthenticationResponse(OpenIdService service,
java.util.Map<java.lang.String,java.lang.String> parameters,
boolean successFullAuthentication,
java.lang.String id,
org.openid4java.message.ParameterList parameterList)
We sign directly (final 'true') because we don't add extensions
response message can be either a DirectError or an AuthSuccess here.
|
protected java.lang.String |
determineIdentity(OpenIdService service,
org.apereo.cas.validation.Assertion assertion)
Determine identity.
|
protected org.openid4java.association.Association |
getAssociation(org.openid4java.server.ServerManager serverManager,
org.openid4java.message.ParameterList parameterList)
Gets association.
|
protected boolean |
isAssociationValid(org.openid4java.association.Association association)
Is association valid.
|
boolean |
supports(org.apereo.cas.authentication.principal.WebApplicationService service) |
public OpenIdServiceResponseBuilder(java.lang.String openIdPrefixUrl,
org.openid4java.server.ServerManager serverManager,
org.apereo.cas.CentralAuthenticationService centralAuthenticationService,
org.apereo.cas.services.ServicesManager servicesManager)
public org.apereo.cas.authentication.principal.Response build(org.apereo.cas.authentication.principal.WebApplicationService webApplicationService,
java.lang.String ticketId,
org.apereo.cas.authentication.Authentication authentication)
ticketId - the service ticket to provide to the service.webApplicationService - the service requesting an openid responseprotected java.lang.String determineIdentity(OpenIdService service, org.apereo.cas.validation.Assertion assertion)
service - the serviceassertion - the assertionprotected org.apereo.cas.authentication.principal.Response buildAuthenticationResponse(OpenIdService service, java.util.Map<java.lang.String,java.lang.String> parameters, boolean successFullAuthentication, java.lang.String id, org.openid4java.message.ParameterList parameterList)
service - the serviceparameters - the parameterssuccessFullAuthentication - the success full authenticationid - the idparameterList - the parameter listprotected org.openid4java.association.Association getAssociation(org.openid4java.server.ServerManager serverManager,
org.openid4java.message.ParameterList parameterList)
serverManager - the server managerparameterList - the parameter listpublic boolean supports(org.apereo.cas.authentication.principal.WebApplicationService service)
protected boolean isAssociationValid(org.openid4java.association.Association association)
association - the association