Package org.keycloak.adapters.cloned
Class HttpAdapterUtils
- java.lang.Object
-
- org.keycloak.adapters.cloned.HttpAdapterUtils
-
public class HttpAdapterUtils extends Object
- Author:
- Hynek Mlnařík
-
-
Constructor Summary
Constructors Constructor Description HttpAdapterUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MultivaluedHashMap<String,KeyInfo>downloadKeysFromSamlDescriptor(org.apache.http.client.HttpClient client, String descriptorUrl)static MultivaluedHashMap<String,KeyInfo>extractKeysFromSamlDescriptor(InputStream xmlStream)Parses SAML descriptor and extracts keys from it.
-
-
-
Method Detail
-
downloadKeysFromSamlDescriptor
public static MultivaluedHashMap<String,KeyInfo> downloadKeysFromSamlDescriptor(org.apache.http.client.HttpClient client, String descriptorUrl) throws HttpClientAdapterException
- Throws:
HttpClientAdapterException
-
extractKeysFromSamlDescriptor
public static MultivaluedHashMap<String,KeyInfo> extractKeysFromSamlDescriptor(InputStream xmlStream) throws ParsingException
Parses SAML descriptor and extracts keys from it.- Parameters:
xmlStream-- Returns:
- List of KeyInfo objects containing keys from the descriptor.
- Throws:
IOExceptionParsingException
-
-