Class SecurityManager

    • Constructor Detail

      • SecurityManager

        public SecurityManager()
    • Method Detail

      • isLocalSecurityMangager

        public boolean isLocalSecurityMangager()
        Return true if a Local Security Manager, with only LocalUserDetailsAuthenticationProviders.
        Returns:
        if a Local Security Manager
        Since:
        4.2.0
      • containsLocalAuthProvider

        public boolean containsLocalAuthProvider()
        Return true if the Security Manager authenticationProviders contains a LocalUserDetailsAuthenticationProviders
        Returns:
        if contains a LocalUserDetailsAuthenticationProviders
      • getAuthProvider

        public AuthenticationProvider getAuthProvider​(String name)
        Return the authentication parameter with the given name
        Parameters:
        name - the name (required)
        Returns:
        the matching authentication provider, or null if not found
      • hasLdapAuthProvider

        public boolean hasLdapAuthProvider()
        Returns:
        if the Security Manager has an LdapUserDetailsAuthenticationProvider
      • setSsoKeystorePassword

        public void setSsoKeystorePassword​(String keystorePassword)
        Set the SSO keystore password.
        Overrides:
        setSsoKeystorePassword in class _SecurityManager
        Parameters:
        keystorePassword - the SSO keystore password
      • setSsoPrivateKeyPassword

        public void setSsoPrivateKeyPassword​(String keyPassword)
        Set the SSO private key password.
        Overrides:
        setSsoPrivateKeyPassword in class _SecurityManager
        Parameters:
        keyPassword - the SSO private key password to set.
      • getSecurityManagerParameterMap

        public Map<String,​String> getSecurityManagerParameterMap()
        Return the Map containing the SecurityManagerParameters name and values
        Returns:
        the Map containing the SecurityManagerParameters name and values
        Since:
        4.1.0
      • getSecurityManagerParameter

        public SecurityManagerParameter getSecurityManagerParameter​(String name)
        Return the security manager parameter with the given name
        Parameters:
        name - the name (required)
        Returns:
        the matching Security Manager, or null if not found
        Since:
        4.1.0
      • isTwoFactorAuthenticationOptional

        public boolean isTwoFactorAuthenticationOptional()
        Return whether this security manager requires all users to pass two-factor authentication Note: This setting is relevant only if a two-factor authentication service has been set.
        Returns:
        true if the two factor authentication is optional
        Since:
        4.3.1