Class NamespaceContext
java.lang.Object
org.keycloak.saml.processing.core.util.NamespaceContext
- All Implemented Interfaces:
NamespaceContext
Helper class in process of parsing signature out of SAML token.
usage example:
xpath.setNamespaceContext(
NamespaceContext.create()
.addNsUriPair(xmlSignatureNSPrefix, JBossSAMLURIConstants.XMLDSIG_NSURI.get())
);
- Author:
- Peter Skopek: pskopek at redhat dot com
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddNsUriPair
(String ns, String uri) static NamespaceContext
create()
Create new NamespaceContext for use.getNamespaceURI
(String prefix) getPrefixes
(String namespaceURI)
-
Constructor Details
-
NamespaceContext
public NamespaceContext() -
NamespaceContext
-
-
Method Details
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefix
in interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixes
in interfaceNamespaceContext
-
addNsUriPair
-
create
Create new NamespaceContext for use.- Returns:
-