Class OpenIdServiceResponseBuilder
- java.lang.Object
-
- org.apereo.cas.authentication.principal.AbstractWebApplicationServiceResponseBuilder
-
- org.apereo.cas.support.openid.authentication.principal.OpenIdServiceResponseBuilder
-
- All Implemented Interfaces:
java.io.Serializable,org.apereo.cas.authentication.principal.ResponseBuilder<org.apereo.cas.authentication.principal.WebApplicationService>,org.springframework.core.Ordered
@Deprecated(since="6.2.0") public class OpenIdServiceResponseBuilder extends org.apereo.cas.authentication.principal.AbstractWebApplicationServiceResponseBuilderDeprecated.6.2Builds responses to Openid authN requests.- Since:
- 4.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenIdServiceResponseBuilder(java.lang.String openIdPrefixUrl, org.openid4java.server.ServerManager serverManager, org.apereo.cas.CentralAuthenticationService centralAuthenticationService, org.apereo.cas.services.ServicesManager servicesManager)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apereo.cas.authentication.principal.Responsebuild(org.apereo.cas.authentication.principal.WebApplicationService webApplicationService, java.lang.String ticketId, org.apereo.cas.authentication.Authentication authentication)Deprecated.Generates an Openid response.protected org.apereo.cas.authentication.principal.ResponsebuildAuthenticationResponse(OpenIdService service, java.util.Map<java.lang.String,java.lang.String> parameters, boolean successFullAuthentication, java.lang.String id, org.openid4java.message.ParameterList parameterList)Deprecated.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.StringdetermineIdentity(OpenIdService service, org.apereo.cas.validation.Assertion assertion)Deprecated.Determine identity.protected org.openid4java.association.AssociationgetAssociation(org.openid4java.server.ServerManager serverManager, org.openid4java.message.ParameterList parameterList)Deprecated.Gets association.protected booleanisAssociationValid(org.openid4java.association.Association association)Deprecated.Is association valid.booleansupports(org.apereo.cas.authentication.principal.WebApplicationService service)Deprecated.
-
-
-
Constructor Detail
-
OpenIdServiceResponseBuilder
public OpenIdServiceResponseBuilder(java.lang.String openIdPrefixUrl, org.openid4java.server.ServerManager serverManager, org.apereo.cas.CentralAuthenticationService centralAuthenticationService, org.apereo.cas.services.ServicesManager servicesManager)Deprecated.
-
-
Method Detail
-
build
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)Deprecated.Generates an Openid response. If no ticketId is found, response is negative. If we have a ticket id, then we check if we have an association. If so, we ask OpenId server manager to generate the answer according with the existing association. If not, we send back an answer with the ticket id as association handle. This will force the consumer to ask a verification, which will validate the service ticket.- Parameters:
ticketId- the service ticket to provide to the service.webApplicationService- the service requesting an openid response- Returns:
- the generated authentication answer
-
determineIdentity
protected java.lang.String determineIdentity(OpenIdService service, org.apereo.cas.validation.Assertion assertion)
Deprecated.Determine identity.- Parameters:
service- the serviceassertion- the assertion- Returns:
- the string
-
buildAuthenticationResponse
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)
Deprecated.We sign directly (final 'true') because we don't add extensions response message can be either a DirectError or an AuthSuccess here. Note: The association handle returned in the Response is either the 'public' created in a previous association, or is a 'private' handle created specifically for the verification step when in non-association mode- Parameters:
service- the serviceparameters- the parameterssuccessFullAuthentication- the success full authenticationid- the idparameterList- the parameter list- Returns:
- response response
-
getAssociation
protected org.openid4java.association.Association getAssociation(org.openid4java.server.ServerManager serverManager, org.openid4java.message.ParameterList parameterList)Deprecated.Gets association.- Parameters:
serverManager- the server managerparameterList- the parameter list- Returns:
- the association
-
supports
public boolean supports(org.apereo.cas.authentication.principal.WebApplicationService service)
Deprecated.
-
isAssociationValid
protected boolean isAssociationValid(org.openid4java.association.Association association)
Deprecated.Is association valid.- Parameters:
association- the association- Returns:
- true/false
-
-