Package org.keycloak.protocol.saml.util
Class ArtifactBindingUtils
- java.lang.Object
- 
- org.keycloak.protocol.saml.util.ArtifactBindingUtils
 
- 
 public class ArtifactBindingUtils extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description ArtifactBindingUtils()
 - 
Method SummaryAll 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- 
byteArrayToResolverProviderIdpublic static String byteArrayToResolverProviderId(byte[] ar) 
 - 
computeArtifactBindingIdentifierStringpublic 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
 
 - 
getArtifactBindingIdentifierStringpublic 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
 
 - 
computeArtifactBindingIdentifierpublic 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
 
 
- 
 
-