Package org.keycloak.protocol.saml.util
Class ArtifactBindingUtils
java.lang.Object
org.keycloak.protocol.saml.util.ArtifactBindingUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
artifactToResolverProviderId
(String artifact) static String
byteArrayToResolverProviderId
(byte[] ar) static byte[]
computeArtifactBindingIdentifier
(String identifierFrom) Computes 20 bytes long byte identifier of the given string, for example, from entityIdstatic String
computeArtifactBindingIdentifierString
(String identifierFrom) Computes identifier from the given String, for example, from entityIdstatic String
getArtifactBindingIdentifierString
(byte[] identifier) Turns byte representation of the identifier into readable String
-
Constructor Details
-
ArtifactBindingUtils
public ArtifactBindingUtils()
-
-
Method Details
-
artifactToResolverProviderId
-
byteArrayToResolverProviderId
-
computeArtifactBindingIdentifierString
Computes identifier from the given String, for example, from entityId- Parameters:
identifierFrom
- String that will be turned into an identifier- Returns:
- Base64 of SHA-1 hash of the identifierFrom
-
getArtifactBindingIdentifierString
Turns byte representation of the identifier into readable String- Parameters:
identifier
- byte representation of the identifier- Returns:
- Base64 of the identifier
-
computeArtifactBindingIdentifier
Computes 20 bytes long byte identifier of the given string, for example, from entityId- Parameters:
identifierFrom
- String that will be turned into an identifier- Returns:
- SHA-1 hash of the given identifierFrom
-