Class SecurityUtil


  • public class SecurityUtil
    extends Object
    An utility class to handle security mode.
    • Method Detail

      • getSecurityModeText

        public static String getSecurityModeText​(@NonNull
                                                 SecurityMode securityMode)
        Gets the text value of a security mode.
        Parameters:
        securityMode - the security mode.
        Returns:
        the String value of the security mode, null if not is found.
      • getSecurityMode

        public static SecurityMode getSecurityMode​(@NonNull
                                                   String securityMode)
        Gets the SecurityMode value from its String name.
        Parameters:
        securityMode - the security mode, can be null.
        Returns:
        the String value of the security mode, null if not found.