Tabnine Logo
XMLCryptoContext.getNamespacePrefix
Code IndexAdd Tabnine to your IDE (free)

How to use
getNamespacePrefix
method
in
javax.xml.crypto.XMLCryptoContext

Best Java code snippets using javax.xml.crypto.XMLCryptoContext.getNamespacePrefix (Showing top 2 results out of 315)

origin: org.apache.santuario/xmlsec

/**
 * Returns the prefix associated with the specified namespace URI
 *
 * @param context contains the namespace map
 * @param nsURI the namespace URI
 * @return the prefix associated with the specified namespace URI, or
 *    null if not set
 */
public static String getNSPrefix(XMLCryptoContext context, String nsURI) {
  if (context != null) {
    return context.getNamespacePrefix
      (nsURI, context.getDefaultNamespacePrefix());
  } else {
    return null;
  }
}
origin: com.hynnet/xws-security

String dsPrefix = null;
if (context != null) {
  prefix = context.getNamespacePrefix
      (WSSE, "wsse");
  dsPrefix = context.getNamespacePrefix
      (XMLSignature.XMLNS, context.getDefaultNamespacePrefix());
javax.xml.cryptoXMLCryptoContextgetNamespacePrefix

Javadoc

Returns the namespace prefix that the specified namespace URI is associated with. Returns the specified default prefix if the specified namespace URI has not been bound to a prefix. To bind a namespace URI to a prefix, call the #putNamespacePrefixmethod.

Popular methods of XMLCryptoContext

  • getProperty
    Returns the value of the specified property.
  • getDefaultNamespacePrefix
    Returns the default namespace prefix. The default namespace prefix is the prefix for all namespace U
  • getURIDereferencer
    Returns a URIDereferencer that is used to dereference URIReferences.
  • get
    Returns the value to which this context maps the specified key.More formally, if this context contai
  • getBaseURI
    Returns the base URI.
  • setProperty
    Sets the specified property.

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • JOptionPane (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now