public class IdPMetadataParser extends Object
| Constructor and Description |
|---|
IdPMetadataParser() |
| Modifier and Type | Method and Description |
|---|---|
static Saml2Settings |
injectIntoSettings(Saml2Settings settings,
Map<String,Object> metadataInfo)
Inject metadata info into Saml2Settings
|
static Map<String,Object> |
parseFileXML(String xmlFileName)
Get IdP Metadata Info from XML file
|
static Map<String,Object> |
parseFileXML(String xmlFileName,
String entityId)
Get IdP Metadata Info from XML file
|
static Map<String,Object> |
parseFileXML(String xmlFileName,
String entityId,
String desiredNameIdFormat,
String desiredSSOBinding,
String desiredSLOBinding)
Get IdP Metadata Info from XML file
|
static Map<String,Object> |
parseRemoteXML(URL xmlURL)
Get IdP Metadata Info from XML file
|
static Map<String,Object> |
parseRemoteXML(URL xmlURL,
String entityId)
Get IdP Metadata Info from XML file
|
static Map<String,Object> |
parseRemoteXML(URL xmlURL,
String entityId,
String desiredNameIdFormat,
String desiredSSOBinding,
String desiredSLOBinding)
Get IdP Metadata Info from XML file
|
static Map<String,Object> |
parseXML(Document xmlDocument)
Get IdP Metadata Info from XML Document
|
static Map<String,Object> |
parseXML(Document xmlDocument,
String entityId)
Get IdP Metadata Info from XML Document
|
static Map<String,Object> |
parseXML(Document xmlDocument,
String entityId,
String desiredNameIdFormat,
String desiredSSOBinding,
String desiredSLOBinding)
Get IdP Metadata Info from XML Document
|
public static Map<String,Object> parseXML(Document xmlDocument, String entityId, String desiredNameIdFormat, String desiredSSOBinding, String desiredSLOBinding) throws XPathException
xmlDocument - XML document hat contains IdP metadataentityId - Entity Id of the desired IdP, if no entity Id is provided and the XML metadata contains more than one IDPSSODescriptor, the first is returneddesiredNameIdFormat - If available on IdP metadata, use that nameIdFormatdesiredSSOBinding - Parse specific binding SSO endpoint.desiredSLOBinding - Parse specific binding SLO endpoint.XPathExpressionExceptionXPathExceptionpublic static Map<String,Object> parseXML(Document xmlDocument, String entityId) throws XPathException
xmlDocument - XML document that contains IdP metadataentityId - Entity Id of the desired IdP, if no entity Id is provided and the XML metadata contains more than one IDPSSODescriptor, the first is returnedXPathExceptionpublic static Map<String,Object> parseXML(Document xmlDocument) throws XPathException
xmlDocument - XML document that contains IdP metadataXPathExceptionpublic static Map<String,Object> parseFileXML(String xmlFileName, String entityId, String desiredNameIdFormat, String desiredSSOBinding, String desiredSLOBinding) throws Exception
xmlFileName - Filename of the XML filename that contains IdP metadataentityId - Entity Id of the desired IdP, if no entity Id is provided and the XML metadata contains more than one IDPSSODescriptor, the first is returneddesiredNameIdFormat - If available on IdP metadata, use that nameIdFormatdesiredSSOBinding - Parse specific binding SSO endpoint.desiredSLOBinding - Parse specific binding SLO endpoint.Exceptionpublic static Map<String,Object> parseFileXML(String xmlFileName, String entityId) throws Exception
xmlFileName - Filename of the XML filename that contains IdP metadataentityId - Entity Id of the desired IdP, if no entity Id is provided and the XML metadata contains more than one IDPSSODescriptor, the first is returnedExceptionpublic static Map<String,Object> parseFileXML(String xmlFileName) throws Exception
xmlFileName - Filename of the XML filename that contains IdP metadataExceptionpublic static Map<String,Object> parseRemoteXML(URL xmlURL, String entityId, String desiredNameIdFormat, String desiredSSOBinding, String desiredSLOBinding) throws Exception
xmlURL - URL to the XML document that contains IdP metadataentityId - Entity Id of the desired IdP, if no entity Id is provided and the XML metadata contains more than one IDPSSODescriptor, the first is returneddesiredNameIdFormat - If available on IdP metadata, use that nameIdFormatdesiredSSOBinding - Parse specific binding SSO endpoint.desiredSLOBinding - Parse specific binding SLO endpoint.Exceptionpublic static Map<String,Object> parseRemoteXML(URL xmlURL, String entityId) throws Exception
xmlURL - URL to the XML document that contains IdP metadataentityId - Entity Id of the desired IdP, if no entity Id is provided and the XML metadata contains more than one IDPSSODescriptor, the first is returnedExceptionpublic static Map<String,Object> parseRemoteXML(URL xmlURL) throws Exception
xmlURL - URL to the XML document that contains IdP metadataExceptionpublic static Saml2Settings injectIntoSettings(Saml2Settings settings, Map<String,Object> metadataInfo)
settings - the Saml2Settings objectmetadataInfo - mapped values with metadata info in Saml2Settings formatCopyright © 2021. All rights reserved.