com.ibm.websphere.security

Class WSSecurityHelper

  • java.lang.Object
    • com.ibm.websphere.security.WSSecurityHelper


  • public class WSSecurityHelper
    extends java.lang.Object
    Provides methods to perform security functions
    Since:
    WAS 5.1.1
    • Constructor Summary

      Constructors 
      Constructor and Description
      WSSecurityHelper() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static boolean isGlobalSecurityEnabled()
      This method returns the state of security enablement for the entire cell.
      static boolean isServerSecurityEnabled()
      This method returns the state of security enablement for the process.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WSSecurityHelper

        public WSSecurityHelper()
    • Method Detail

      • isServerSecurityEnabled

        public static boolean isServerSecurityEnabled()

        This method returns the state of security enablement for the process. If global security is enabled, but an application server security is disabled This property returns the state of security just for that application server. This property will always return false when global security is disabled.

        Returns:
        boolean
      • isGlobalSecurityEnabled

        public static boolean isGlobalSecurityEnabled()

        This method returns the state of security enablement for the entire cell. If this API is called from within an application server where security has been explicitly disabled for the server, but the global security is enabled for the cell, this API will return true. This is useful to determine if Administrative security is enabled within a particular process. Admisitrative security is always enabled with global security, regardless of the state of the server security enablement.

        Returns:
        boolean