Package org.pac4j.config.client
Class PropertiesConfigFactory
- java.lang.Object
-
- org.pac4j.config.builder.AbstractBuilder
-
- org.pac4j.config.client.PropertiesConfigFactory
-
- All Implemented Interfaces:
PropertiesConstants
,ConfigFactory
public class PropertiesConfigFactory extends AbstractBuilder implements ConfigFactory
Build a configuration from properties.- Since:
- 1.8.1
- Author:
- Jerome Leleu
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.pac4j.config.client.PropertiesConstants
PropertiesConstants.SpringEncoderType
-
-
Field Summary
-
Fields inherited from class org.pac4j.config.builder.AbstractBuilder
authenticators, MAX_NUM_AUTHENTICATORS, MAX_NUM_CLIENTS, MAX_NUM_CUSTOM_PROPERTIES, MAX_NUM_ENCODERS, properties
-
Fields inherited from interface org.pac4j.config.client.PropertiesConstants
ANONYMOUS, AUTHENTICATOR_TEST_TOKEN, AUTHENTICATOR_TEST_USERNAME_PASSWORD, CAS_LOGIN_URL, CAS_PROTOCOL, DB_ALLOW_POOL_SUSPENSION, DB_ATTRIBUTES, DB_AUTO_COMMIT, DB_CATALOG, DB_CONNECTION_INIT_SQL, DB_CONNECTION_TEST_QUERY, DB_CONNECTION_TIMEOUT, DB_CUSTOM_PARAM_KEY, DB_CUSTOM_PARAM_VALUE, DB_DATASOURCE_CLASS_NAME, DB_DATASOURCE_JNDI, DB_DRIVER_CLASS_NAME, DB_IDLE_TIMEOUT, DB_INITIALIZATION_FAIL_TIMEOUT, DB_ISOLATE_INTERNAL_QUERIES, DB_JDBC_URL, DB_LEAK_DETECTION_THRESHOLD, DB_LOGIN_TIMEOUT, DB_MAX_LIFETIME, DB_MAXIMUM_POOL_SIZE, DB_MINIMUM_IDLE, DB_PASSWORD, DB_PASSWORD_ENCODER, DB_POOL_NAME, DB_READ_ONLY, DB_REGISTER_MBEANS, DB_TRANSACTION_ISOLATION, DB_USER_ID_ATTRIBUTE, DB_USER_PASSWORD_ATTRIBUTE, DB_USERNAME, DB_USERNAME_ATTRIBUTE, DB_USERS_TABLE, DB_VALIDATION_TIMEOUT, DIRECTBASICAUTH_AUTHENTICATOR, DROPBOX_ID, DROPBOX_SECRET, FACEBOOK_FIELDS, FACEBOOK_ID, FACEBOOK_SCOPE, FACEBOOK_SECRET, FORMCLIENT_AUTHENTICATOR, FORMCLIENT_LOGIN_URL, FORMCLIENT_PASSWORD_PARAMETER, FORMCLIENT_USERNAME_PARAMETER, FOURSQUARE_ID, FOURSQUARE_SECRET, GITHUB_ID, GITHUB_SECRET, GOOGLE_ID, GOOGLE_SCOPE, GOOGLE_SECRET, INDIRECTBASICAUTH_AUTHENTICATOR, INDIRECTBASICAUTH_REALM_NAME, LDAP_ALLOW_MULTIPLE_DNS, LDAP_ATTRIBUTES, LDAP_BIND_CREDENTIAL, LDAP_BIND_DN, LDAP_BLOCK_WAIT_TIME, LDAP_CONNECT_TIMEOUT, LDAP_DN_FORMAT, LDAP_ENHANCE_WITH_ENTRY_RESOLVER, LDAP_FAIL_FAST, LDAP_IDLE_TIME, LDAP_KEYSTORE, LDAP_KEYSTORE_PASSWORD, LDAP_KEYSTORE_TYPE, LDAP_MAX_POOL_SIZE, LDAP_MIN_POOL_SIZE, LDAP_POOL_PASSIVATOR, LDAP_PRINCIPAL_ATTRIBUTE_ID, LDAP_PRINCIPAL_ATTRIBUTE_PASSWORD, LDAP_PROVIDER_CLASS, LDAP_PRUNE_PERIOD, LDAP_SASL_AUTHORIZATION_ID, LDAP_SASL_MECHANISM, LDAP_SASL_QUALITY_OF_PROTECTION, LDAP_SASL_REALM, LDAP_SASL_SECURITY_STRENGTH, LDAP_SUBTREE_SEARCH, LDAP_TRUST_CERTIFICATES, LDAP_TYPE, LDAP_URL, LDAP_USE_SSL, LDAP_USE_START_TLS, LDAP_USER_FILTER, LDAP_USERS_DN, LDAP_VALIDATE_ON_CHECKOUT, LDAP_VALIDATE_PERIOD, LDAP_VALIDATE_PERIODICALLY, LINKEDIN_FIELDS, LINKEDIN_ID, LINKEDIN_SCOPE, LINKEDIN_SECRET, OAUTH2_AUTH_URL, OAUTH2_CLIENT_AUTHENTICATION_METHOD, OAUTH2_ID, OAUTH2_PROFILE_ID, OAUTH2_PROFILE_PATH, OAUTH2_PROFILE_URL, OAUTH2_SCOPE, OAUTH2_SECRET, OAUTH2_TOKEN_URL, OAUTH2_WITH_STATE, OIDC_AZURE_TENANT, OIDC_AZURE_TYPE, OIDC_CLIENT_AUTHENTICATION_METHOD, OIDC_CUSTOM_PARAM_KEY, OIDC_CUSTOM_PARAM_VALUE, OIDC_DISCOVERY_URI, OIDC_GOOGLE_TYPE, OIDC_ID, OIDC_MAX_CLOCK_SKEW, OIDC_PREFERRED_JWS_ALGORITHM, OIDC_SCOPE, OIDC_SECRET, OIDC_TYPE, OIDC_USE_NONCE, REST_URL, SAML_AUTHN_REQUEST_BINDING_TYPE, SAML_IDENTITY_PROVIDER_METADATA_PATH, SAML_KEYSTORE_ALIAS, SAML_KEYSTORE_PASSWORD, SAML_KEYSTORE_PATH, SAML_MAXIMUM_AUTHENTICATION_LIFETIME, SAML_PRIVATE_KEY_PASSWORD, SAML_SERVICE_PROVIDER_ENTITY_ID, SAML_SERVICE_PROVIDER_METADATA_PATH, SHIRO_ENCODER, SHIRO_ENCODER_GENERATE_PUBLIC_SALT, SHIRO_ENCODER_HASH_ALGORITHM_NAME, SHIRO_ENCODER_HASH_ITERATIONS, SHIRO_ENCODER_PRIVATE_SALT, SPRING_ENCODER, SPRING_ENCODER_BCRYPT_LENGTH, SPRING_ENCODER_PBKDF2_HASH_WIDTH, SPRING_ENCODER_PBKDF2_ITERATIONS, SPRING_ENCODER_PBKDF2_SECRET, SPRING_ENCODER_SCRYPT_CPU_COST, SPRING_ENCODER_SCRYPT_KEY_LENGTH, SPRING_ENCODER_SCRYPT_MEMORY_COST, SPRING_ENCODER_SCRYPT_PARALLELIZATION, SPRING_ENCODER_SCRYPT_SALT_LENGTH, SPRING_ENCODER_STANDARD_SECRET, SPRING_ENCODER_TYPE, TWITTER_ID, TWITTER_SECRET, WINDOWSLIVE_ID, WINDOWSLIVE_SECRET, YAHOO_ID, YAHOO_SECRET
-
-
Constructor Summary
Constructors Constructor Description PropertiesConfigFactory(String callbackUrl, Map<String,String> properties)
PropertiesConfigFactory(Map<String,String> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Config
build(Object... parameters)
protected boolean
hasCasClients()
protected boolean
hasDbAuthenticator()
protected boolean
hasHttpAuthenticatorsOrClients()
protected boolean
hasLdapAuthenticator()
protected boolean
hasOAuthClients()
protected boolean
hasOidcClients()
protected boolean
hasSaml2Clients()
protected boolean
hasShiroEncoder()
protected boolean
hasSpringEncoder()
-
Methods inherited from class org.pac4j.config.builder.AbstractBuilder
concat, containsProperty, getAuthenticator, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsInteger, getPropertyAsLong
-
-
-
-
Method Detail
-
build
public Config build(Object... parameters)
- Specified by:
build
in interfaceConfigFactory
-
hasShiroEncoder
protected boolean hasShiroEncoder()
-
hasSpringEncoder
protected boolean hasSpringEncoder()
-
hasLdapAuthenticator
protected boolean hasLdapAuthenticator()
-
hasDbAuthenticator
protected boolean hasDbAuthenticator()
-
hasOAuthClients
protected boolean hasOAuthClients()
-
hasSaml2Clients
protected boolean hasSaml2Clients()
-
hasCasClients
protected boolean hasCasClients()
-
hasOidcClients
protected boolean hasOidcClients()
-
hasHttpAuthenticatorsOrClients
protected boolean hasHttpAuthenticatorsOrClients()
-
-