Package org.keycloak.protocol.saml
Interface ArtifactResolver
- All Superinterfaces:
org.keycloak.provider.Provider
public interface ArtifactResolver
extends org.keycloak.provider.Provider
Provides a way to create and resolve artifacts for SAML Artifact binding
-
Method Summary
Modifier and TypeMethodDescriptionbuildArtifact(org.keycloak.models.AuthenticatedClientSessionModel clientSessionModel, String entityId, String artifactResponse) Creates and stores an artifactresolveArtifact(org.keycloak.models.AuthenticatedClientSessionModel clientSessionModel, String artifact) Returns a serialized Saml ArtifactResponse corresponding to the artifact that was created bybuildArtifactorg.keycloak.models.ClientModelselectSourceClient(org.keycloak.models.KeycloakSession session, String artifact) Returns client model that issued artifactMethods inherited from interface org.keycloak.provider.Provider
close
-
Method Details
-
selectSourceClient
org.keycloak.models.ClientModel selectSourceClient(org.keycloak.models.KeycloakSession session, String artifact) throws ArtifactResolverProcessingException Returns client model that issued artifact- Parameters:
session- KeycloakSession for searching for client corresponding clientartifact- the artifact- Returns:
- the client model that issued the artifact
- Throws:
ArtifactResolverProcessingException- When an error occurs during client search
-
buildArtifact
String buildArtifact(org.keycloak.models.AuthenticatedClientSessionModel clientSessionModel, String entityId, String artifactResponse) throws ArtifactResolverProcessingException Creates and stores an artifact- Parameters:
clientSessionModel- client session model that can be used for storing the response for artifactentityId- id of an issuer that issued the artifactResponseartifactResponse- serialized Saml ArtifactResponse that represents the response for created artifact- Returns:
- the artifact
- Throws:
ArtifactResolverProcessingException- When an error occurs during creation of the artifact.
-
resolveArtifact
String resolveArtifact(org.keycloak.models.AuthenticatedClientSessionModel clientSessionModel, String artifact) throws ArtifactResolverProcessingException Returns a serialized Saml ArtifactResponse corresponding to the artifact that was created bybuildArtifact- Parameters:
clientSessionModel- client session model that can be used for obtaining the artifact responseartifact- the artifact- Returns:
- serialized Saml ArtifactResponse corresponding to the artifact
- Throws:
ArtifactResolverProcessingException- When an error occurs during resolution of the artifact.
-