Class SecurityManager

java.lang.Object
org.apache.cayenne.PersistentObject
org.apache.cayenne.BaseDataObject
org.apache.cayenne.CayenneDataObject
All Implemented Interfaces:
IEntity, Auditable, Serializable, org.apache.cayenne.DataObject, org.apache.cayenne.Persistent, org.apache.cayenne.Validating

@CacheGroups("CONFIG") public class SecurityManager extends _SecurityManager implements Auditable
Provides an Security Manager configuration entity.
Since:
3.5.0
See Also:
  • Constructor Details

    • SecurityManager

      public SecurityManager()
  • Method Details

    • 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
    • getSsoKeystorePassword

      public String getSsoKeystorePassword()
      Return the SSO keystore password.
      Overrides:
      getSsoKeystorePassword in class _SecurityManager
      Returns:
      the SSO keystore password.
    • setSsoKeystorePassword

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

      public String getSsoPrivateKeyPassword()
      Return the SSO private key password.
      Overrides:
      getSsoPrivateKeyPassword in class _SecurityManager
      Returns:
      the SSO private key 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