Example #1
0
 /**
  * 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;
   }
 }