org.jboss.soa.esb.util
Class JmsUtil

java.lang.Object
  extended by org.jboss.soa.esb.util.JmsUtil

public class JmsUtil
extends java.lang.Object

Utility methods for JMS operations.

Author:
Daniel Bevenius

Method Summary
static java.lang.String getPasswordFromFile(java.lang.String password)
          Will return the decrypted password from the passed in file.
static boolean isSecurityConfigured(java.lang.String principal, java.lang.String credential)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPasswordFromFile

public static java.lang.String getPasswordFromFile(java.lang.String password)
                                            throws javax.jms.JMSException
Will return the decrypted password from the passed in file.

Parameters:
password - The path to the password file.
Returns:
String Either the decrypted password or the passed in password unchanged.
Throws:
javax.jms.JMSException - If an error occurs while decrypting.

isSecurityConfigured

public static boolean isSecurityConfigured(java.lang.String principal,
                                           java.lang.String credential)