Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionorg.forgerock.audit.events.handlers.buffering.BufferedBatchPublisher.Builder.writeInterval
(Duration) UseTimeLimitRotationPolicy(java.time.Duration)
instead.useJsonValueFunctions.javaDuration()
insteadUseTracingOutboundFilterConfig(Supplier, Function, Function)
instead as the OpenTelemetry context will eventually be removed from the TracingContext.UseTracingContext(Context, io.opentelemetry.context.Context)
instead as the OpenTelemetry object will be removed from the context in a future release.Downstream components should obtain the OpenTelemetry object from a dependency injection framework.UsePerItemEvictionStrategyCache.getMaxTimeoutDuration()
instead.UseDuration
instead.
-
Deprecated ClassesClassDescriptionThis class is currently only used in conjunction with the PropertyResolverSecretStore and this pairing is deprecated. Instead, use the FileSystemSecretStore.
RequestHandler
now has default methods which implement the not-supported behavior. This class is here for transition from pre-JDK8 impelementations.This class will be removed once CAF has been migrated fully to CHF, at which point components should createSecurityContext
s directly rather than via request attributes.UseDuration
instead.
-
Deprecated FieldsFieldDescriptionremoved in JSON schema draft 04renamed to multipleOf in JSON schema draft 04removed in JSON schema draft 04removed in JSON schema draft 04
-
Deprecated MethodsMethodDescriptionorg.forgerock.audit.events.handlers.buffering.BufferedBatchPublisher.Builder.writeInterval
(Duration) UseElasticsearchUtil.NORMALIZING_OBJECT_MAPPER
instead.In favour ofPropertyResolver.getProperty(String, boolean)
useJsonValueFunctions.javaDuration()
insteaduseJsonValue::copy
directly insteadUseCrestHttp.newHttpHandler(CrestApplication)
instead.UseCrestHttp.newHttpHandler(CrestApplication)
instead.UseCrestHttp.newHttpHandler(CrestApplication)
instead.Since 25.0.0. Prefer to useCrestHttp.newHttpHandler(CrestApplication, Factory)
and provide your own factory instead of the default one.Since 25.0.0. Prefer to useCrestHttp.newHttpHandler(CrestApplication, HttpContextFactory, Factory)
and provide your own factory instead of the default one.Since 25.0.0. Prefer to useCrestHttp.newHttpHandler(CrestApplication, Context, Factory)
and provide your own factory instead of the default one.UseCrestHttp.newHttpHandler(CrestApplication)
instead.in favor ofResourceException.newResourceException(int)
UseResources.newHandler(Object)
instead.UseResources.newHandler(Object)
instead.UseResources.newHandler(Object)
instead.UseResponses.newQueryResponse(String, CountPolicy, int)
instead.useDn.isEmpty()
insteaduseDn.emptyDn()
insteadDownstream components should obtain the OpenTelemetry object from a dependency injection framework.UseSecretBuilder.build(Purpose)
instead.UseBase64.decode(byte[])
instead.UseBase64.decode(char[])
instead.UseBase64.decode(String)
instead.UsePerItemEvictionStrategyCache.getMaxTimeoutDuration()
instead.Since 25.0.0. Prefer usingPromise.getOrThrow()
and handle properly theInterruptedException
in the calling code, or usePromise.getOrThrowIfInterrupted()
.Since 25.0.0. Prefer usingPromise.get(long, TimeUnit)
and handle properly theInterruptedException
in the calling code, or usePromise.getOrThrowIfInterrupted()
.useObjects.requireNonNull(Object)
} insteaduseObjects.requireNonNull(Object, String)
insteadExperience has shown thatReject.ifFalse
can be hard to read. Prefer to useReject.unless(boolean)
(which works identically) or rewrite to useReject.ifTrue(boolean)
instead.Experience has shown thatReject.ifFalse
can be hard to read. Prefer to useReject.unless(boolean, String)
(which works identically) or rewrite to useReject.ifTrue(boolean, String)
instead.ExecutorServiceFactory.createCachedThreadPool(String)
orExecutorServiceFactory.createCachedThreadPool(ThreadFactory)
should be used so that threads have meaningful names.ExecutorServiceFactory.createFixedThreadPool(int, String)
should be used so that threads have meaningful names.ExecutorServiceFactory.createScheduledService(int, String)
should be used so that threads have meaningful names.ExecutorServiceFactory.createThreadPool(int, int, long, TimeUnit, BlockingQueue, String)
should be used so that threads have meaningful names.
-
Deprecated ConstructorsConstructorDescriptionUse
TimeLimitRotationPolicy(java.time.Duration)
instead.UseJsonPointer.rootPtr()
instead.UseTracingOutboundFilterConfig(Supplier, Function, Function)
instead as the OpenTelemetry context will eventually be removed from the TracingContext.UseTracingContext(Context, io.opentelemetry.context.Context)
instead as the OpenTelemetry object will be removed from the context in a future release.useHsmKeyStoreLoader(Provider hsmProvider)
instead so that management of the provider can be left to the caller.Prefer usingSecretsProvider(Clock)
and provide your own clock instance.Prefer the use ofDuration.duration(long, TimeUnit)
.