com.ibm.websphere.security

Class WSSecurityHelper

  1. java.lang.Object
  2. extended bycom.ibm.websphere.security.WSSecurityHelper

  1. public class WSSecurityHelper
  2. extends java.lang.Object
Provides methods to perform security functions
Since:
WAS 5.1.1

Constructor Summary

Constructor and Description
WSSecurityHelper()

Method Summary

Modifier and Type Method and Description
  1. static
  2. boolean
isGlobalSecurityEnabled()
This method returns the state of security enablement for the entire cell.
  1. static
  2. 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

  1. public WSSecurityHelper()

Method Detail

isServerSecurityEnabled

  1. 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

  1. 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