Class NamespaceContext
- java.lang.Object
-
- org.keycloak.saml.processing.core.util.NamespaceContext
-
- All Implemented Interfaces:
NamespaceContext
public class NamespaceContext extends Object implements 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
Constructors Constructor Description NamespaceContext()
NamespaceContext(String prefix, String uri)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NamespaceContext
addNsUriPair(String ns, String uri)
static NamespaceContext
create()
Create new NamespaceContext for use.String
getNamespaceURI(String prefix)
String
getPrefix(String namespaceURI)
Iterator<String>
getPrefixes(String namespaceURI)
-
-
-
Method Detail
-
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURI
in interfaceNamespaceContext
-
getPrefix
public String getPrefix(String namespaceURI)
- Specified by:
getPrefix
in interfaceNamespaceContext
-
getPrefixes
public Iterator<String> getPrefixes(String namespaceURI)
- Specified by:
getPrefixes
in interfaceNamespaceContext
-
addNsUriPair
public NamespaceContext addNsUriPair(String ns, String uri)
-
create
public static NamespaceContext create()
Create new NamespaceContext for use.- Returns:
-
-