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 X509CertificategetCertificate(KeyDescriptorType keyDescriptor) Get theX509Certificatefrom the KeyInfostatic X509CertificategetCertificate(KeyTypes use, SSODescriptorType ssoDescriptorType) static IDPSSODescriptorTypelocateIDPSSODescriptorType(EntityDescriptorType entityType) static SPSSODescriptorTypelocateSPSSODescriptorType(EntityDescriptorType entityType) static EntityDescriptorTypeparseEntityDescriptorType(String descriptor) static Stringstatic StringsignEntityDescriptorType(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 theX509Certificatefrom the KeyInfo- Parameters:
keyDescriptor-- Returns:
- Throws:
ProcessingExceptionConfigurationException
-
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
-