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
Fields -
Constructor Summary
Constructors -
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
static String
signEntityDescriptorType
(EntityDescriptorType type, SignatureAlgorithm sigAlg, String kid, X509Certificate certificate, KeyPair keyPair) 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
-
writeEntityDescriptorType
public static String writeEntityDescriptorType(EntityDescriptorType type) throws ProcessingException - Throws:
ProcessingException
-
signEntityDescriptorType
public static String signEntityDescriptorType(EntityDescriptorType type, SignatureAlgorithm sigAlg, String kid, X509Certificate certificate, KeyPair keyPair) throws ProcessingException, ConfigurationException, ParsingException
-