Community articlegetSecurityManager method
Added by IBM contributorIBM on May 2, 2012
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.


This method retrieves the Security Manager object. Use the Security Manager object to retrieve the available hash algorithms.
To avoid a conflict with an existing class in Java (java.lang.SecurityManager), you must refer to the Security Manager by the full class name of


   public SecurityManager getSecurityManager() throws UWIException;


There are no parameters for this method.


A Security Manager object, or throws a generic exception (UWIException) if an error occurs.


The following example uses getSecurityManager to get the Security Manager object. lookupHashAlgorithm is then called to get the sha1 hash algorithm.
   public Hash getHashAlgorithm();
   { theSecurityManager;
   Hash tempHashObject;
      theSecurityManager = IFSSingleton.getSecurityManager();
      theHash = theSecurityManager.lookupHashAlgorithm("sha1");

Parent topic:
IFSSingleton class