/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/passwordless/PasswordlessAuthenticationAccountsProperties.java

https://github.com/Jasig/cas · Java · 72 lines · 34 code · 12 blank · 26 comment · 0 complexity · 26a69cd8519016e813ff105b9e2da806 MD5 · raw file

  1. package org.apereo.cas.configuration.model.support.passwordless;
  2. import org.apereo.cas.configuration.model.support.passwordless.account.PasswordlessAuthenticationGroovyAccountsProperties;
  3. import org.apereo.cas.configuration.model.support.passwordless.account.PasswordlessAuthenticationJsonAccountsProperties;
  4. import org.apereo.cas.configuration.model.support.passwordless.account.PasswordlessAuthenticationLdapAccountsProperties;
  5. import org.apereo.cas.configuration.model.support.passwordless.account.PasswordlessAuthenticationMongoDbAccountsProperties;
  6. import org.apereo.cas.configuration.model.support.passwordless.account.PasswordlessAuthenticationRestAccountsProperties;
  7. import org.apereo.cas.configuration.support.RequiresModule;
  8. import com.fasterxml.jackson.annotation.JsonFilter;
  9. import lombok.Getter;
  10. import lombok.Setter;
  11. import lombok.experimental.Accessors;
  12. import org.springframework.boot.context.properties.NestedConfigurationProperty;
  13. import java.io.Serializable;
  14. import java.util.LinkedHashMap;
  15. import java.util.Map;
  16. /**
  17. * This is {@link PasswordlessAuthenticationAccountsProperties}.
  18. *
  19. * @author Misagh Moayyed
  20. * @since 6.4.0
  21. */
  22. @RequiresModule(name = "cas-server-support-passwordless")
  23. @Getter
  24. @Setter
  25. @Accessors(chain = true)
  26. @JsonFilter("PasswordlessAuthenticationAccountsProperties")
  27. public class PasswordlessAuthenticationAccountsProperties implements Serializable {
  28. private static final long serialVersionUID = -8424650395669337488L;
  29. /**
  30. * Passwordless authentication settings via REST.
  31. */
  32. @NestedConfigurationProperty
  33. private PasswordlessAuthenticationRestAccountsProperties rest = new PasswordlessAuthenticationRestAccountsProperties();
  34. /**
  35. * Passwordless authentication settings via LDAP.
  36. */
  37. @NestedConfigurationProperty
  38. private PasswordlessAuthenticationLdapAccountsProperties ldap = new PasswordlessAuthenticationLdapAccountsProperties();
  39. /**
  40. * Passwordless authentication settings via Groovy.
  41. */
  42. @NestedConfigurationProperty
  43. private PasswordlessAuthenticationGroovyAccountsProperties groovy = new PasswordlessAuthenticationGroovyAccountsProperties();
  44. /**
  45. * Passwordless authentication settings via JSON resource.
  46. */
  47. @NestedConfigurationProperty
  48. private PasswordlessAuthenticationJsonAccountsProperties json = new PasswordlessAuthenticationJsonAccountsProperties();
  49. /**
  50. * Passwordless authentication settings via MongoDb.
  51. */
  52. @NestedConfigurationProperty
  53. private PasswordlessAuthenticationMongoDbAccountsProperties mongo = new PasswordlessAuthenticationMongoDbAccountsProperties();
  54. /**
  55. * Passwordless authentication settings using static accounts.
  56. * The key is the user identifier, while the value is the form of
  57. * contact such as email, sms, etc.
  58. */
  59. private Map<String, String> simple = new LinkedHashMap<>(2);
  60. }