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.



Description

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 com.PureEdge.security.SecurityManager.

Method

   public SecurityManager getSecurityManager() throws UWIException;


Parameters

There are no parameters for this method.

Returns

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

Example

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


Parent topic:
IFSSingleton class