public Connector( String key, @SuppressWarnings( "UnusedParameters" ) String typeDefault ) { group = new GroupSettingSupport( Connector.class, key ); enabled = group.scope( setting( "enabled", BOOLEAN, FALSE ) ); type = group.scope( setting( "type", optionsObeyCase( ConnectorType.class ), NO_DEFAULT ) ); }
public Connector( String key ) { group = new GroupSettingSupport( Connector.class, key ); enabled = group.scope( setting( "enabled", BOOLEAN, "false" ) ); type = group.scope( setting( "type", optionsObeyCase( ConnectorType.class ), NO_DEFAULT ) ); }
ConnectorExample( String key ) { group = new GroupSettingSupport( ConnectorExample.class, key ); this.enabled = group.scope( setting( "enabled", BOOLEAN, FALSE ) ); this.name = group.scope( setting( "name", STRING, "Bob Dylan" ) ); } }
public SslPolicyConfig( String policyName ) { GroupSettingSupport group = new GroupSettingSupport( SslPolicyConfig.class, policyName ); this.base_directory = group.scope( pathSetting( "base_directory", NO_DEFAULT ) ); this.allow_key_generation = group.scope( setting( "allow_key_generation", BOOLEAN, FALSE ) ); this.trust_all = group.scope( setting( "trust_all", BOOLEAN, FALSE ) ); this.private_key = group.scope( derivedDefault( "private_key", base_directory, "private.key" ) ); this.public_certificate = group.scope( derivedDefault( "public_certificate", base_directory, "public.crt" ) ); this.trusted_dir = group.scope( derivedDefault( "trusted_dir", base_directory, "trusted" ) ); this.revoked_dir = group.scope( derivedDefault( "revoked_dir", base_directory, "revoked" ) ); this.private_key_password = group.scope( setting( "private_key_password", STRING, NO_DEFAULT ) ); this.client_auth = group.scope( setting( "client_auth", optionsIgnoreCase( ClientAuth.class ), ClientAuth.REQUIRE.name() ) ); this.tls_versions = group.scope( setting( "tls_versions", STRING_LIST, joinList( TLS_VERSION_DEFAULTS ) ) ); this.ciphers = group.scope( setting( "ciphers", STRING_LIST, joinList( CIPHER_SUITES_DEFAULTS ) ) ); this.verify_hostname = group.scope( setting( "verify_hostname", BOOLEAN, FALSE ) ); }
public Connector( String key ) { group = new GroupSettingSupport( Connector.class, key ); enabled = group.scope( setting( "enabled", BOOLEAN, "false" ) ); type = group.scope( setting( "type", optionsObeyCase( ConnectorType.class ), NO_DEFAULT ) ); }
public Connector( String key, @SuppressWarnings( "UnusedParameters" ) String typeDefault ) { group = new GroupSettingSupport( Connector.class, key ); enabled = group.scope( setting( "enabled", BOOLEAN, FALSE ) ); type = group.scope( setting( "type", optionsObeyCase( ConnectorType.class ), NO_DEFAULT ) ); }
public SslPolicyConfig( String policyName ) { GroupSettingSupport group = new GroupSettingSupport( SslPolicyConfig.class, policyName ); this.base_directory = group.scope( pathSetting( "base_directory", NO_DEFAULT ) ); this.allow_key_generation = group.scope( setting( "allow_key_generation", BOOLEAN, FALSE ) ); this.trust_all = group.scope( setting( "trust_all", BOOLEAN, FALSE ) ); this.private_key = group.scope( derivedDefault( "private_key", base_directory, "private.key" ) ); this.public_certificate = group.scope( derivedDefault( "public_certificate", base_directory, "public.crt" ) ); this.trusted_dir = group.scope( derivedDefault( "trusted_dir", base_directory, "trusted" ) ); this.revoked_dir = group.scope( derivedDefault( "revoked_dir", base_directory, "revoked" ) ); this.private_key_password = group.scope( setting( "private_key_password", STRING, NO_DEFAULT ) ); this.client_auth = group.scope( setting( "client_auth", optionsIgnoreCase( ClientAuth.class ), ClientAuth.REQUIRE.name() ) ); this.tls_versions = group.scope( setting( "tls_versions", STRING_LIST, joinList( TLS_VERSION_DEFAULTS ) ) ); this.ciphers = group.scope( setting( "ciphers", STRING_LIST, joinList( CIPHER_SUITES_DEFAULTS ) ) ); this.verify_hostname = group.scope( setting( "verify_hostname", BOOLEAN, FALSE ) ); }