Package org.keycloak.protocol.saml
Interface ArtifactResolver
- All Superinterfaces:
- Provider
- All Known Implementing Classes:
- DefaultSamlArtifactResolver
Provides a way to create and resolve artifacts for SAML Artifact binding
- 
Method SummaryModifier and TypeMethodDescriptionbuildArtifact(AuthenticatedClientSessionModel clientSessionModel, String entityId, String artifactResponse) Creates and stores an artifactresolveArtifact(AuthenticatedClientSessionModel clientSessionModel, String artifact) Returns a serialized Saml ArtifactResponse corresponding to the artifact that was created bybuildArtifactselectSourceClient(KeycloakSession session, String artifact) Returns client model that issued artifact
- 
Method Details- 
selectSourceClientClientModel selectSourceClient(KeycloakSession session, String artifact) throws ArtifactResolverProcessingException Returns client model that issued artifact- Parameters:
- session- KeycloakSession for searching for client corresponding client
- artifact- the artifact
- Returns:
- the client model that issued the artifact
- Throws:
- ArtifactResolverProcessingException- When an error occurs during client search
 
- 
buildArtifactString buildArtifact(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 artifact
- entityId- id of an issuer that issued the artifactResponse
- artifactResponse- serialized Saml ArtifactResponse that represents the response for created artifact
- Returns:
- the artifact
- Throws:
- ArtifactResolverProcessingException- When an error occurs during creation of the artifact.
 
- 
resolveArtifactString resolveArtifact(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 response
- artifact- the artifact
- Returns:
- serialized Saml ArtifactResponse corresponding to the artifact
- Throws:
- ArtifactResolverProcessingException- When an error occurs during resolution of the artifact.
 
 
-