public class OpenIdServiceResponseBuilder
extends org.apereo.cas.authentication.principal.AbstractWebApplicationServiceResponseBuilder
| Constructor and Description |
|---|
OpenIdServiceResponseBuilder(org.openid4java.message.ParameterList parameterList,
java.lang.String openIdPrefixUrl)
Instantiates a new Open id service response builder.
|
| Modifier and Type | Method and Description |
|---|---|
org.apereo.cas.authentication.principal.Response |
build(org.apereo.cas.authentication.principal.WebApplicationService webApplicationService,
java.lang.String ticketId)
Generates an Openid response.
|
protected org.apereo.cas.authentication.principal.Response |
buildAuthenticationResponse(org.openid4java.server.ServerManager serverManager,
OpenIdService service,
java.util.Map<java.lang.String,java.lang.String> parameters,
boolean associated,
boolean successFullAuthentication,
java.lang.String id)
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)
Gets association.
|
protected boolean |
isAssociationValid(org.openid4java.association.Association association)
Is association valid.
|
public OpenIdServiceResponseBuilder(org.openid4java.message.ParameterList parameterList,
java.lang.String openIdPrefixUrl)
parameterList - the parameter listopenIdPrefixUrl - the open id prefix urlpublic org.apereo.cas.authentication.principal.Response build(org.apereo.cas.authentication.principal.WebApplicationService webApplicationService,
java.lang.String ticketId)
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(org.openid4java.server.ServerManager serverManager,
OpenIdService service,
java.util.Map<java.lang.String,java.lang.String> parameters,
boolean associated,
boolean successFullAuthentication,
java.lang.String id)
serverManager - the server managerservice - the serviceparameters - the parametersassociated - the associatedsuccessFullAuthentication - the success full authenticationid - the idprotected org.openid4java.association.Association getAssociation(org.openid4java.server.ServerManager serverManager)
serverManager - the server managerprotected boolean isAssociationValid(org.openid4java.association.Association association)
association - the association