public class DefaultSamlArtifactResolver extends Object implements ArtifactResolver
Modifier and Type | Field and Description |
---|---|
protected static org.jboss.logging.Logger |
logger |
Constructor and Description |
---|
DefaultSamlArtifactResolver() |
Modifier and Type | Method and Description |
---|---|
String |
buildArtifact(AuthenticatedClientSessionModel clientSessionModel,
String entityId,
String artifactResponse) |
void |
close() |
String |
createArtifact(String entityId)
Creates an artifact.
|
String |
resolveArtifact(AuthenticatedClientSessionModel clientSessionModel,
String artifact) |
ClientModel |
selectSourceClient(KeycloakSession session,
String artifact) |
public String resolveArtifact(AuthenticatedClientSessionModel clientSessionModel, String artifact) throws ArtifactResolverProcessingException
resolveArtifact
in interface ArtifactResolver
ArtifactResolverProcessingException
public ClientModel selectSourceClient(KeycloakSession session, String artifact) throws ArtifactResolverProcessingException
selectSourceClient
in interface ArtifactResolver
ArtifactResolverProcessingException
public String buildArtifact(AuthenticatedClientSessionModel clientSessionModel, String entityId, String artifactResponse) throws ArtifactResolverProcessingException
buildArtifact
in interface ArtifactResolver
ArtifactResolverProcessingException
public String createArtifact(String entityId) throws ArtifactResolverProcessingException
SAML_artifact := B64(TypeCode EndpointIndex RemainingArtifact)
TypeCode := 0x0004 EndpointIndex := Byte1Byte2 RemainingArtifact := SourceID MessageHandle
SourceID := 20-byte_sequence, used by the artifact receiver to determine artifact issuer MessageHandle := 20-byte_sequence
entityId
- the entity id to encode in the sourceIdArtifactResolverProcessingException
Copyright © 2021 JBoss by Red Hat. All rights reserved.