org.picketlink.identity.federation.core.util
Class NamespaceContext
java.lang.Object
org.picketlink.identity.federation.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamespaceContext
public NamespaceContext()
NamespaceContext
public NamespaceContext(String prefix,
String uri)
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURI
in interface NamespaceContext
getPrefix
public String getPrefix(String namespaceURI)
- Specified by:
getPrefix
in interface NamespaceContext
getPrefixes
public Iterator<String> getPrefixes(String namespaceURI)
- Specified by:
getPrefixes
in interface NamespaceContext
addNsUriPair
public NamespaceContext addNsUriPair(String ns,
String uri)
create
public static NamespaceContext create()
- Create new NamespaceContext for use.
- Returns:
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.