Class SAMLMetadataUtil
java.lang.Object
org.keycloak.saml.processing.core.saml.v2.util.SAMLMetadataUtil
Deals with SAML2 Metadata
- Since:
- Jan 31, 2011
- Author:
- Anil.Saldhana@redhat.com
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic X509Certificate
getCertificate
(KeyDescriptorType keyDescriptor) Get theX509Certificate
from the KeyInfostatic X509Certificate
getCertificate
(KeyTypes use, SSODescriptorType ssoDescriptorType) static IDPSSODescriptorType
locateIDPSSODescriptorType
(EntityDescriptorType entityType) static SPSSODescriptorType
locateSPSSODescriptorType
(EntityDescriptorType entityType) static EntityDescriptorType
parseEntityDescriptorType
(String descriptor) static String
-
Field Details
-
UTF8_BOM
- See Also:
-
-
Constructor Details
-
SAMLMetadataUtil
public SAMLMetadataUtil()
-
-
Method Details
-
getCertificate
public static X509Certificate getCertificate(KeyDescriptorType keyDescriptor) throws ConfigurationException, ProcessingException Get theX509Certificate
from the KeyInfo- Parameters:
keyDescriptor
-- Returns:
- Throws:
ProcessingException
ConfigurationException
-
getCertificate
-
parseEntityDescriptorType
public static EntityDescriptorType parseEntityDescriptorType(String descriptor) throws ParsingException - Throws:
ParsingException
-
locateIDPSSODescriptorType
-
locateSPSSODescriptorType
-
removeUTF8BOM
-