/** * Set the {@link NameID} formats to ignore and leave unencrypted. * * @param formats formats to exclude */ public void setExcludedFormats(@Nonnull @NonnullElements final Collection<String> formats) { excludedFormats = new HashSet<>(StringSupport.normalizeStringCollection(formats)); }
/** * Set the content-types to allow. * * @param types types to allow */ public void setAcceptTypes(@Nonnull final Collection<String> types) { Constraint.isNotNull(types, "Types cannot be null"); acceptTypes = new HashSet<>(StringSupport.normalizeStringCollection(types)); }
/** * Set the authentication flows to use. * * @param flows flow identifiers to use */ public void setAuthenticationFlows(@Nullable @NonnullElements final Collection<String> flows) { if (flows != null) { authenticationFlows = new HashSet<>(StringSupport.normalizeStringCollection(flows)); } else { authenticationFlows = Collections.emptySet(); } }
/** * Set the names of the connector's attributes that make up the dependency. * * @param names attribute names */ public void setAttributeNames(@Nonnull @NotEmpty final Collection<String> names) { attributeNames = new HashSet<>(StringSupport.normalizeStringCollection(names)); }
/** * Set the ordered collection of outbound interceptor flows to enable. * * @param flows flow identifiers to enable */ public void setOutboundInterceptorFlows(@Nullable @NonnullElements final Collection<String> flows) { if (flows != null) { outboundFlows = new ArrayList<>(StringSupport.normalizeStringCollection(flows)); } else { outboundFlows = Collections.emptyList(); } }
/** * Set the error messages to check for classifying a driver error as retryable, generally indicating * a lock violation or duplicate insert that signifies a broken database. * * @param errors retryable messages */ public void setRetryableErrors(@Nullable @NonnullElements final Collection<String> errors) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); retryableErrors = new ArrayList(StringSupport.normalizeStringCollection(errors)); }
/** * Set the attribute IDs to read from in order of preference. * * @param ids attribute IDs to read from */ public void setAttributeSourceIds(@Nonnull @NonnullElements final List<String> ids) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); attributeSourceIds = new ArrayList<>(StringSupport.normalizeStringCollection(ids)); }
/** * Set the whitelisted attribute IDs. * * @param whitelist whitelisted attribute IDs */ public void setWhitelistedAttributeIds(@Nonnull @NonnullElements final Collection<String> whitelist) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); whitelistedAttributeIds = new HashSet<>(StringSupport.normalizeStringCollection(whitelist)); }
/** * Set the blacklisted usernames. * * @param blacklist blacklist to set */ public void setBlacklistedUsernames(@Nonnull @NonnullElements final Collection<String> blacklist) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); blacklistedUsernames = new HashSet<>(StringSupport.normalizeStringCollection(blacklist)); }
/** * Set the whitelisted usernames. * * @param whitelist whitelist to set */ public void setWhitelistedUsernames(@Nonnull @NonnullElements final Collection<String> whitelist) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); whitelistedUsernames = new HashSet<>(StringSupport.normalizeStringCollection(whitelist)); }
/** * Set the name identifier formats to use. * * @param formats name identifier formats to use */ public void setNameIDFormatPrecedence(@Nonnull @NonnullElements final Collection<String> formats) { Constraint.isNotNull(formats, "List of formats cannot be null"); nameIDFormatPrecedence = new ArrayList<>(StringSupport.normalizeStringCollection(formats)); }
/** * Set the whitelisted attribute IDs. * * @param whitelist whitelisted attribute IDs */ public void setWhitelistedAttributeIds(@Nonnull @NonnullElements final Collection<String> whitelist) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); whitelistedAttributeIds = new HashSet<>(StringSupport.normalizeStringCollection(whitelist)); }
/** * Set the list of request headers to check for an identity. * * @param headers list of request headers to check */ public void setCheckHeaders(@Nonnull @NonnullElements final Collection<String> headers) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); checkHeaders = new ArrayList<>(StringSupport.normalizeStringCollection(headers)); }
/** * Set the blacklisted attribute IDs. * * @param blacklist blacklisted attribute IDs */ public void setBlacklistedAttributeIds(@Nonnull @NonnullElements final Collection<String> blacklist) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); blacklistedAttributeIds = new HashSet<>(StringSupport.normalizeStringCollection(blacklist)); }
/** * Constructor. * * @param candidates hardwired set of values to check against */ public AttributePrincipalPredicate(@Nonnull @NonnullElements final Collection<String> candidates) { super(new AttributePrincipalLookupFunction(), StringSupport.normalizeStringCollection(candidates)); }
/** * Constructor. * * @param candidates hardwired set of values to check against */ public AttributeIssuerIdPredicate(@Nonnull @NonnullElements final Collection<String> candidates) { super(new AttributeIssuerIdLookupFunction(), StringSupport.normalizeStringCollection(candidates)); }
/** * Constructor. * * @param candidates hardwired set of values to check against */ public AttributeRecipientIdPredicate(@Nonnull @NonnullElements final Collection<String> candidates) { super(new AttributeRecipientIdLookupFunction(), StringSupport.normalizeStringCollection(candidates)); }
/** * Set the OIDs to search for, in order of preference. * * @param ids RDN OIDs to search for */ public void setObjectIds(@Nonnull @NonnullElements final List<String> ids) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); Constraint.isNotNull(ids, "OID list cannot be null"); objectIds = new ArrayList<>(StringSupport.normalizeStringCollection(ids)); }
/** * Set the property names to treat as defunct. * * @param properties defunct property names */ public void setDeadProperties(@Nonnull @NonnullElements final Collection<String> properties) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); Constraint.isNotNull(properties, "Property collection cannot be null"); deadProperties = StringSupport.normalizeStringCollection(properties); }
/** * Set the attribute IDs to pass into the resolver. * * @param attributeIds attribute ID collection */ public void setAttributesToResolve(@Nonnull @NonnullElements final Collection<String> attributeIds) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); Constraint.isNotNull(attributeIds, "Attribute ID collection cannot be null"); attributesLookupStrategy = FunctionSupport.<ProfileRequestContext,Collection<String>>constant( StringSupport.normalizeStringCollection(attributeIds)); }