Package org.keycloak.adapters.cloned
Class HttpAdapterUtils
java.lang.Object
org.keycloak.adapters.cloned.HttpAdapterUtils
- Author:
- Hynek Mlnařík
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
HttpAdapterUtils
public HttpAdapterUtils()
-
-
Method Details
-
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
-