Package org.keycloak.protocol.saml.util
Class ArtifactBindingUtils
- java.lang.Object
-
- org.keycloak.protocol.saml.util.ArtifactBindingUtils
-
public class ArtifactBindingUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ArtifactBindingUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringartifactToResolverProviderId(String artifact)static StringbyteArrayToResolverProviderId(byte[] ar)static byte[]computeArtifactBindingIdentifier(String identifierFrom)Computes 20 bytes long byte identifier of the given string, for example, from entityIdstatic StringcomputeArtifactBindingIdentifierString(String identifierFrom)Computes identifier from the given String, for example, from entityIdstatic StringgetArtifactBindingIdentifierString(byte[] identifier)Turns byte representation of the identifier into readable String
-
-
-
Method Detail
-
byteArrayToResolverProviderId
public static String byteArrayToResolverProviderId(byte[] ar)
-
computeArtifactBindingIdentifierString
public static String computeArtifactBindingIdentifierString(String identifierFrom)
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
public static String getArtifactBindingIdentifierString(byte[] identifier)
Turns byte representation of the identifier into readable String- Parameters:
identifier- byte representation of the identifier- Returns:
- Base64 of the identifier
-
computeArtifactBindingIdentifier
public static byte[] computeArtifactBindingIdentifier(String identifierFrom)
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
-
-