Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- acceptAnyStatus() - Method in class codes.grow.packages.casdoor.core.TransportRequest.Builder
-
Returns every status to the caller (health probes); no status is retried.
- accepts(int) - Method in class codes.grow.packages.casdoor.core.TransportRequest
-
Returns whether a non-2xx status is returned to the caller instead of raising an error.
- acceptStatus(int...) - Method in class codes.grow.packages.casdoor.core.TransportRequest.Builder
-
Returns these statuses to the caller instead of raising an error (no retries for them).
- accessToken() - Method in record class codes.grow.packages.casdoor.TokenSet
-
Returns the value of the
accessTokenrecord component. - allowUnverifiedEmail() - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings
-
Whether tokens of unverified e-mail addresses are accepted.
- allowUnverifiedEmail(boolean) - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings.Builder
-
Accepts tokens of unverified e-mail addresses.
- application() - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings
-
Casdoor application.
- application(String) - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings.Builder
-
Sets the application.
- arg(String) - Method in class codes.grow.packages.casdoor.testing.StepContext
-
Returns a required string argument.
- args() - Method in record class codes.grow.packages.casdoor.testing.Scenario.Step
-
Returns the value of the
argsrecord component. - args() - Method in class codes.grow.packages.casdoor.testing.StepContext
-
Returns the arguments with
${...}variables substituted (#{i}is kept). - asSdkException(Throwable, String) - Static method in class codes.grow.packages.casdoor.core.HttpTransport
-
Converts any throwable from a future into the matching SDK exception.
- assertPassed() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport
-
Throws when any scenario failed.
- attempt() - Method in record class codes.grow.packages.casdoor.core.Hooks.ErrorInfo
-
Returns the value of the
attemptrecord component. - attempt() - Method in record class codes.grow.packages.casdoor.core.Hooks.RequestInfo
-
Returns the value of the
attemptrecord component. - attempt() - Method in record class codes.grow.packages.casdoor.core.Hooks.ResponseInfo
-
Returns the value of the
attemptrecord component. - attempts() - Method in class codes.grow.packages.casdoor.core.TransportResponse
-
Returns the number of attempts the call needed.
- AUTHENTICATION - Enum constant in enum class codes.grow.packages.casdoor.core.ErrorCode
-
HTTP 401: missing or invalid credentials.
- AuthenticationException - Exception Class in codes.grow.packages.casdoor.core
-
Missing or invalid credentials (HTTP 401).
- AuthenticationException(String) - Constructor for exception class codes.grow.packages.casdoor.core.AuthenticationException
-
Creates the exception.
- AuthenticationException(String, Integer, String, boolean, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.AuthenticationException
-
Creates the exception with response details and an explicit
retryableflag, for service subclasses whose errors differ from the default of the code (for example aCONFLICTthat may succeed when retried, or anUNAVAILABLEthat will not). - AuthenticationException(String, Integer, String, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.AuthenticationException
-
Creates the exception with response details.
- AuthenticationException(String, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.AuthenticationException
-
Creates the exception with a cause.
- await(CompletableFuture<T>, String) - Static method in class codes.grow.packages.casdoor.core.HttpTransport
-
Waits for a future of this SDK: an interrupt cancels the future and raises
CancelledException.
B
- backoff(int) - Method in class codes.grow.packages.casdoor.core.RetryPolicy
-
Computes the full-jitter backoff for retry
n. - backoffCap(int) - Method in class codes.grow.packages.casdoor.core.RetryPolicy
-
Returns the upper bound of the jitter window for retry
n. - baseUrl() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the base URL.
- batchOptions() - Method in record class codes.grow.packages.casdoor.testing.Scenario
-
Returns the
batchOptionsobject of a logging scenario. - body() - Method in class codes.grow.packages.casdoor.core.TransportRequest
-
Returns a copy of the body.
- body() - Method in class codes.grow.packages.casdoor.core.TransportResponse
-
Returns a copy of the body.
- body(byte[], String) - Method in class codes.grow.packages.casdoor.core.TransportRequest.Builder
-
Sets a raw body.
- bool(String, String...) - Method in class codes.grow.packages.casdoor.core.EnvReader
-
Reads a boolean (
true/false/1/0/yes/no/on/off, case-insensitive). - build() - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings.Builder
-
Builds the settings.
- build() - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Builds the configuration and the client.
- build() - Method in class codes.grow.packages.casdoor.CasdoorConfig.Builder
-
Builds and validates the configuration.
- build() - Method in class codes.grow.packages.casdoor.core.RetryPolicy.Builder
-
Validates and builds the policy.
- build() - Method in class codes.grow.packages.casdoor.core.TlsOptions.Builder
-
Builds the options.
- build() - Method in class codes.grow.packages.casdoor.core.TransportConfig.Builder
-
Builds the configuration.
- build() - Method in class codes.grow.packages.casdoor.core.TransportRequest.Builder
-
Builds the request.
- build() - Method in class codes.grow.packages.casdoor.testing.ConformanceRunner.Builder
-
Builds the runner.
- buildAuthorizeUrl(String, String, String) - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Browser authorize URL (code flow, PKCE S256) on the public URL.
- builder() - Static method in class codes.grow.packages.casdoor.CasdoorAuthSettings
-
Starts an empty builder.
- builder() - Static method in class codes.grow.packages.casdoor.CasdoorClient
-
Starts a client builder.
- builder() - Static method in class codes.grow.packages.casdoor.CasdoorConfig
-
Starts an empty builder (every field at its default).
- builder() - Static method in class codes.grow.packages.casdoor.core.RetryPolicy
-
Starts a builder with the defaults.
- builder() - Static method in class codes.grow.packages.casdoor.core.TlsOptions
-
Starts a builder.
- builder() - Static method in class codes.grow.packages.casdoor.testing.ConformanceRunner
-
Starts a builder with
CoreOpsand the built-in category operations registered. - builder(String) - Static method in class codes.grow.packages.casdoor.core.TransportConfig
-
Starts a builder with the SPEC defaults.
- builder(String, String) - Static method in class codes.grow.packages.casdoor.core.TransportRequest
-
Starts a request.
C
- caCertPath() - Method in class codes.grow.packages.casdoor.core.TlsOptions
-
Returns the CA bundle path.
- caCertPath(Path) - Method in class codes.grow.packages.casdoor.core.TlsOptions.Builder
-
Trusts the CA certificates in a PEM file instead of the system trust store.
- caCertPem() - Method in class codes.grow.packages.casdoor.core.TlsOptions
-
Returns the inline CA bundle.
- caCertPem(String) - Method in class codes.grow.packages.casdoor.core.TlsOptions.Builder
-
Trusts the CA certificates in inline PEM text.
- CANCELLED - Enum constant in enum class codes.grow.packages.casdoor.core.ErrorCode
-
The caller cancelled the operation.
- CancelledException - Exception Class in codes.grow.packages.casdoor.core
-
The caller cancelled the operation (future cancelled, thread interrupted, client closed).
- CancelledException(String) - Constructor for exception class codes.grow.packages.casdoor.core.CancelledException
-
Creates the exception.
- CancelledException(String, Integer, String, boolean, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.CancelledException
-
Creates the exception with response details and an explicit
retryableflag, for service subclasses whose errors differ from the default of the code (for example aCONFLICTthat may succeed when retried, or anUNAVAILABLEthat will not). - CancelledException(String, Integer, String, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.CancelledException
-
Creates the exception with response details.
- CancelledException(String, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.CancelledException
-
Creates the exception with a cause.
- capabilities(String...) - Method in class codes.grow.packages.casdoor.testing.ConformanceRunner.Builder
-
Declares capabilities of the target (
write,delete,versions,query,version, ...). - CasdoorAuthSettings - Class in codes.grow.packages.casdoor
-
Casdoor application settings of the client (Java skeleton): OAuth client, organization, application, redirect and public URLs.
- CasdoorAuthSettings.Builder - Class in codes.grow.packages.casdoor
-
Builder of the settings.
- CasdoorClient - Class in codes.grow.packages.casdoor
-
Client for Casdoor.
- CasdoorClient.Builder - Class in codes.grow.packages.casdoor
-
Builder that configures and creates a client in one chain.
- CasdoorConfig - Class in codes.grow.packages.casdoor
-
Immutable configuration of a
CasdoorClient(SPEC section 2.2). - CasdoorConfig.Builder - Class in codes.grow.packages.casdoor
-
Builder of the configuration.
- CasdoorException - Exception Class in codes.grow.packages.casdoor.core
-
Base class of every error raised by the Casdoor SDK (SPEC section 2.1).
- CasdoorException(ErrorCode, String, Integer, String, boolean, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.CasdoorException
-
Creates an exception.
- CasdoorFlows - Class in codes.grow.packages.casdoor
-
Casdoor helpers: PKCE, form bodies, token parsing and error normalization.
- CasdoorFlows.Pkce - Record Class in codes.grow.packages.casdoor
-
A PKCE pair (RFC 7636, S256).
- category() - Method in interface codes.grow.packages.casdoor.testing.ConformanceOps
-
Returns the category these operations serve.
- category() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.ScenarioResult
-
Returns the value of the
categoryrecord component. - category() - Method in class codes.grow.packages.casdoor.testing.CoreOps
- category() - Method in record class codes.grow.packages.casdoor.testing.Scenario
-
Returns the value of the
categoryrecord component. - check(HttpTransport, String) - Static method in class codes.grow.packages.casdoor.core.HealthCheck
-
Probes an endpoint once (no retries) and maps the outcome to a
HealthStatus. - check(JsonNode, Object, Throwable) - Static method in class codes.grow.packages.casdoor.testing.Expectations
-
Checks a step outcome.
- checkAsync(HttpTransport, String) - Static method in class codes.grow.packages.casdoor.core.HealthCheck
-
Asynchronous variant of
HealthCheck.check(codes.grow.packages.casdoor.core.HttpTransport, java.lang.String). - clear() - Method in class codes.grow.packages.casdoor.core.Secret
-
Overwrites the characters with zeros; later
Secret.reveal()calls throw. - clientCertPath() - Method in class codes.grow.packages.casdoor.core.TlsOptions
-
Returns the client certificate path.
- clientCertPath(Path) - Method in class codes.grow.packages.casdoor.core.TlsOptions.Builder
-
Sets the client certificate file (mutual TLS); requires a key.
- clientCertPem(String) - Method in class codes.grow.packages.casdoor.core.TlsOptions.Builder
-
Sets the client certificate as inline PEM.
- clientId() - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings
-
OAuth client id.
- clientId(String) - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings.Builder
-
Sets the client id.
- clientKeyPath() - Method in class codes.grow.packages.casdoor.core.TlsOptions
-
Returns the client key path.
- clientKeyPath(Path) - Method in class codes.grow.packages.casdoor.core.TlsOptions.Builder
-
Sets the client key file (unencrypted PKCS#8 PEM).
- clientKeyPem(Secret) - Method in class codes.grow.packages.casdoor.core.TlsOptions.Builder
-
Sets the client key as inline PEM.
- clientSecret() - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings
-
OAuth client secret.
- clientSecret(String) - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings.Builder
-
Sets the client secret.
- clock() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the clock used for
Retry-Afterdates. - clock(Clock) - Method in class codes.grow.packages.casdoor.core.TransportConfig.Builder
-
Sets the clock (tests).
- close() - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Stops registered resources and the transport.
- close() - Method in class codes.grow.packages.casdoor.core.HttpTransport
-
Cancels pending calls and releases the client.
- close() - Method in interface codes.grow.packages.casdoor.testing.CoreTarget
-
Releases the target; idempotent.
- code() - Method in exception class codes.grow.packages.casdoor.core.CasdoorException
-
Returns the canonical error code.
- codeChallenge() - Method in record class codes.grow.packages.casdoor.CasdoorFlows.Pkce
-
Returns the value of the
codeChallengerecord component. - codes.grow.packages.casdoor - package codes.grow.packages.casdoor
-
Grow Codes SDK for Casdoor.
- codes.grow.packages.casdoor.core - package codes.grow.packages.casdoor.core
- codes.grow.packages.casdoor.testing - package codes.grow.packages.casdoor.testing
- codeVerifier() - Method in record class codes.grow.packages.casdoor.CasdoorFlows.Pkce
-
Returns the value of the
codeVerifierrecord component. - config() - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Returns the configuration.
- config() - Method in class codes.grow.packages.casdoor.core.HttpTransport
-
Returns the configuration.
- CONFIG - Enum constant in enum class codes.grow.packages.casdoor.core.ErrorCode
-
Invalid or missing configuration.
- ConfigException - Exception Class in codes.grow.packages.casdoor.core
-
Invalid or missing configuration.
- ConfigException(String) - Constructor for exception class codes.grow.packages.casdoor.core.ConfigException
-
Creates the exception.
- ConfigException(String, Integer, String, boolean, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.ConfigException
-
Creates the exception with response details and an explicit
retryableflag, for service subclasses whose errors differ from the default of the code (for example aCONFLICTthat may succeed when retried, or anUNAVAILABLEthat will not). - ConfigException(String, Integer, String, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.ConfigException
-
Creates the exception with response details.
- ConfigException(String, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.ConfigException
-
Creates the exception with a cause.
- CONFLICT - Enum constant in enum class codes.grow.packages.casdoor.core.ErrorCode
-
HTTP 409, 412 or a check-and-set mismatch.
- ConflictException - Exception Class in codes.grow.packages.casdoor.core
-
Conflicting write or check-and-set mismatch (HTTP 409, 412).
- ConflictException(String) - Constructor for exception class codes.grow.packages.casdoor.core.ConflictException
-
Creates the exception.
- ConflictException(String, Integer, String, boolean, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.ConflictException
-
Creates the exception with response details and an explicit
retryableflag, for service subclasses whose errors differ from the default of the code (for example aCONFLICTthat may succeed when retried, or anUNAVAILABLEthat will not). - ConflictException(String, Integer, String, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.ConflictException
-
Creates the exception with response details.
- ConflictException(String, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.ConflictException
-
Creates the exception with a cause.
- ConformanceOps - Interface in codes.grow.packages.casdoor.testing
-
The operations of one scenario category (
core,secrets,logging,tracing) for theConformanceRunner. - ConformanceReport - Record Class in codes.grow.packages.casdoor.testing
-
Results of a conformance run.
- ConformanceReport(List<ConformanceReport.ScenarioResult>) - Constructor for record class codes.grow.packages.casdoor.testing.ConformanceReport
-
Creates a report; the list is copied.
- ConformanceReport.ScenarioResult - Record Class in codes.grow.packages.casdoor.testing
-
Result of one scenario.
- ConformanceReport.Status - Enum Class in codes.grow.packages.casdoor.testing
-
Outcome of a scenario or step.
- ConformanceReport.StepResult - Record Class in codes.grow.packages.casdoor.testing
-
Result of one step.
- ConformanceRunner - Class in codes.grow.packages.casdoor.testing
-
Runs the shared conformance scenarios (
conformance/scenarios/*.json, SPEC section 6) against targets supplied by a service's integration test. - ConformanceRunner.Builder - Class in codes.grow.packages.casdoor.testing
-
Builder for
ConformanceRunner. - connectTimeout() - Method in class codes.grow.packages.casdoor.CasdoorConfig
-
Returns the connect timeout.
- connectTimeout() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the connection setup timeout.
- connectTimeout(Duration) - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Sets the connect timeout.
- connectTimeout(Duration) - Method in class codes.grow.packages.casdoor.CasdoorConfig.Builder
-
Sets the connect timeout (default 10 s).
- connectTimeout(Duration) - Method in class codes.grow.packages.casdoor.core.TransportConfig.Builder
-
Sets the connect timeout.
- contentType() - Method in class codes.grow.packages.casdoor.core.TransportRequest
-
Returns the body content type.
- CoreOps - Class in codes.grow.packages.casdoor.testing
-
Conformance operations of the
corecategory:health,ping,serverVersion,close. - CoreOps() - Constructor for class codes.grow.packages.casdoor.testing.CoreOps
-
Creates the operations.
- CoreTarget - Interface in codes.grow.packages.casdoor.testing
-
A target of the
coreconformance category that is not the service client: a fake for unit tests of the runner, or an adapter for a client whose core methods differ. - count() - Method in class codes.grow.packages.casdoor.testing.OpResult
-
Returns the explicit count.
- create(CasdoorConfig) - Static method in class codes.grow.packages.casdoor.CasdoorClient
-
Creates a client.
- create(CasdoorConfig, CasdoorAuthSettings) - Static method in class codes.grow.packages.casdoor.CasdoorClient
-
Creates a client with Casdoor application settings.
- create(Scenario) - Method in interface codes.grow.packages.casdoor.testing.TargetFactory
-
Creates or returns the target for one scenario.
- createPkce() - Static method in class codes.grow.packages.casdoor.CasdoorFlows
-
Creates a PKCE pair.
D
- debug(String) - Method in interface codes.grow.packages.casdoor.core.Logger
-
Logs at debug level without fields.
- debug(String, Map<String, Object>) - Method in interface codes.grow.packages.casdoor.core.Logger
-
Logs at debug level.
- decode(byte[], TypeReference<T>) - Static method in class codes.grow.packages.casdoor.core.Json
-
Decodes JSON bytes into a generic type.
- decode(byte[], Class<T>) - Static method in class codes.grow.packages.casdoor.core.Json
-
Decodes JSON bytes into a type.
- deepMatch(JsonNode, JsonNode) - Static method in class codes.grow.packages.casdoor.testing.Expectations
-
Deep JSON equality where objects in
expectedare matched as subsets and numbers compare by value (42 == 42.0). - DEFAULT_MAX_RETRIES - Static variable in class codes.grow.packages.casdoor.core.RetryPolicy
-
Default maximum number of retries (so up to 4 attempts).
- DEFAULT_POLL_INTERVAL - Static variable in class codes.grow.packages.casdoor.testing.ConformanceRunner
-
Pause between repeated steps.
- DEFAULT_POLL_TIMEOUT - Static variable in class codes.grow.packages.casdoor.testing.ConformanceRunner
-
How long
listServicessteps are repeated until their expectation passes. - DEFAULT_PREFIX - Static variable in class codes.grow.packages.casdoor.core.EnvReader
-
Prefix of every variable of this SDK.
- DEFAULT_PREFIX - Static variable in class codes.grow.packages.casdoor.testing.ConformanceRunner
-
Default value of
${prefix}. - DEFAULT_SCOPE - Static variable in class codes.grow.packages.casdoor.CasdoorAuthSettings
-
Default OAuth scope.
- DEFAULT_URL - Static variable in class codes.grow.packages.casdoor.CasdoorConfig
-
Default endpoint.
- defaults() - Static method in class codes.grow.packages.casdoor.core.RetryPolicy
-
Returns the default policy: 3 retries, 100 ms initial, 10 s max, multiplier 2, Retry-After up to 60 s.
- defaults() - Static method in class codes.grow.packages.casdoor.core.TlsOptions
-
Returns options without any customisation (system trust store).
- delete(String) - Static method in class codes.grow.packages.casdoor.core.TransportRequest
-
Starts a DELETE request.
- describe() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.ScenarioResult
-
Returns a one-line description.
- description() - Method in record class codes.grow.packages.casdoor.testing.Scenario
-
Returns the value of the
descriptionrecord component. - details() - Method in record class codes.grow.packages.casdoor.core.HealthStatus
-
Returns the value of the
detailsrecord component. - duration() - Method in class codes.grow.packages.casdoor.core.TransportResponse
-
Returns the call duration including retries.
- duration(String, String...) - Method in class codes.grow.packages.casdoor.core.EnvReader
-
Reads a duration (integer milliseconds or Go-style units such as
1m30s). - durationMs() - Method in record class codes.grow.packages.casdoor.core.Hooks.ResponseInfo
-
Returns the value of the
durationMsrecord component. - durationMs() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.ScenarioResult
-
Returns the value of the
durationMsrecord component. - dynamicTests(ConformanceRunner) - Static method in class codes.grow.packages.casdoor.testing.JUnitConformance
-
Creates one dynamic test per selected scenario.
E
- empty() - Static method in class codes.grow.packages.casdoor.CasdoorAuthSettings
-
Settings with nothing configured.
- encode(Object) - Static method in class codes.grow.packages.casdoor.core.Json
-
Encodes a value as UTF-8 JSON.
- envelopeError(String, String) - Static method in class codes.grow.packages.casdoor.CasdoorFlows
-
Maps a Casdoor
{"status":"error","msg":…}envelope to a typed exception. - EnvReader - Class in codes.grow.packages.casdoor.core
-
Reads configuration from environment variables (SPEC section 2.2).
- EnvReader(String, Map<String, String>) - Constructor for class codes.grow.packages.casdoor.core.EnvReader
-
Creates a reader over an explicit environment map.
- equals(Object) - Method in record class codes.grow.packages.casdoor.CasdoorFlows.Pkce
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class codes.grow.packages.casdoor.core.HealthStatus
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class codes.grow.packages.casdoor.core.Hooks.ErrorInfo
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class codes.grow.packages.casdoor.core.Hooks.RequestInfo
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class codes.grow.packages.casdoor.core.Hooks.ResponseInfo
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.ScenarioResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.StepResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class codes.grow.packages.casdoor.testing.Scenario
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class codes.grow.packages.casdoor.testing.Scenario.Step
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class codes.grow.packages.casdoor.TokenSet
-
Indicates whether some other object is "equal to" this one.
- error() - Method in record class codes.grow.packages.casdoor.core.Hooks.ErrorInfo
-
Returns the value of the
errorrecord component. - error(String) - Method in interface codes.grow.packages.casdoor.core.Logger
-
Logs at error level without fields.
- error(String, Map<String, Object>) - Method in interface codes.grow.packages.casdoor.core.Logger
-
Logs at error level.
- ErrorCode - Enum Class in codes.grow.packages.casdoor.core
-
Canonical error codes shared by every Grow Codes SDK (SPEC section 2.1).
- ErrorInfo(String, String, CasdoorException, int, boolean) - Constructor for record class codes.grow.packages.casdoor.core.Hooks.ErrorInfo
-
Creates an instance of a
ErrorInforecord class. - errorMapper() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the service error mapper.
- errorMapper(ErrorMapper) - Method in class codes.grow.packages.casdoor.core.TransportConfig.Builder
-
Sets the service error mapper (see
ErrorMapper). - ErrorMapper - Interface in codes.grow.packages.casdoor.core
-
Service hook that replaces the error
HttpTransportderived from a failed response, for vendor-specific mapping (for example a 403 that means bad credentials, or a 500 whose body says the request will never succeed). - errorMessage(String, int, Map<String, List<String>>, byte[], Collection<String>) - Static method in class codes.grow.packages.casdoor.core.HttpTransport
-
Builds an error message
"<operation>: <reason> (HTTP <status>)"with redacted, truncated vendor text. - exchangeCode(String, String, String) - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Exchanges the authorization code of the browser redirect for tokens.
- expect() - Method in record class codes.grow.packages.casdoor.testing.Scenario.Step
-
Returns the value of the
expectrecord component. - Expectations - Class in codes.grow.packages.casdoor.testing
-
Evaluates the
expectobject of a scenario step (SPEC section 6). - expiresAt() - Method in record class codes.grow.packages.casdoor.TokenSet
-
Returns the value of the
expiresAtrecord component.
F
- FAILED - Enum constant in enum class codes.grow.packages.casdoor.testing.ConformanceReport.Status
-
An expectation failed or the step raised an unexpected error.
- forStatus(int) - Static method in enum class codes.grow.packages.casdoor.core.ErrorCode
-
Maps an HTTP status to its canonical code.
- fromEnv() - Static method in class codes.grow.packages.casdoor.CasdoorClient
-
Creates a client from the SDK and vendor environment variables.
- fromEnv() - Static method in class codes.grow.packages.casdoor.CasdoorConfig
-
Reads the configuration from the process environment.
- fromEnv(EnvReader) - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings.Builder
-
Fills every unset field from the environment.
- fromEnv(EnvReader) - Static method in class codes.grow.packages.casdoor.CasdoorAuthSettings
-
Reads the settings from the environment.
- fromEnv(EnvReader) - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Fills unset fields from an environment reader.
- fromEnv(EnvReader) - Method in class codes.grow.packages.casdoor.CasdoorConfig.Builder
-
Fills every field that was not set explicitly from the environment.
- fromEnv(Map<String, String>) - Static method in class codes.grow.packages.casdoor.CasdoorConfig
-
Reads the configuration from an explicit variable map (tests).
- fromError(CasdoorException) - Static method in class codes.grow.packages.casdoor.core.HealthCheck
-
Maps a transport error to
unreachable. - fromResponse(TransportResponse) - Static method in class codes.grow.packages.casdoor.core.HealthCheck
-
Maps a health response: 2xx is healthy; the word comes from a JSON
statusfield (ok/unhealthywhen absent); other string fields become details.
G
- get(String) - Static method in class codes.grow.packages.casdoor.core.TransportRequest
-
Starts a GET request.
H
- hashCode() - Method in record class codes.grow.packages.casdoor.CasdoorFlows.Pkce
-
Returns a hash code value for this object.
- hashCode() - Method in record class codes.grow.packages.casdoor.core.HealthStatus
-
Returns a hash code value for this object.
- hashCode() - Method in record class codes.grow.packages.casdoor.core.Hooks.ErrorInfo
-
Returns a hash code value for this object.
- hashCode() - Method in record class codes.grow.packages.casdoor.core.Hooks.RequestInfo
-
Returns a hash code value for this object.
- hashCode() - Method in record class codes.grow.packages.casdoor.core.Hooks.ResponseInfo
-
Returns a hash code value for this object.
- hashCode() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport
-
Returns a hash code value for this object.
- hashCode() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.ScenarioResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.StepResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class codes.grow.packages.casdoor.testing.Scenario
-
Returns a hash code value for this object.
- hashCode() - Method in record class codes.grow.packages.casdoor.testing.Scenario.Step
-
Returns a hash code value for this object.
- hashCode() - Method in record class codes.grow.packages.casdoor.TokenSet
-
Returns a hash code value for this object.
- header(String) - Method in class codes.grow.packages.casdoor.core.TransportResponse
-
Returns the first value of a header.
- header(String, String) - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Adds a header.
- header(String, String) - Method in class codes.grow.packages.casdoor.CasdoorConfig.Builder
-
Adds a header sent with every request.
- header(String, String) - Method in class codes.grow.packages.casdoor.core.TransportRequest.Builder
-
Sets a header.
- headers() - Method in class codes.grow.packages.casdoor.CasdoorConfig
-
Returns the extra request headers.
- headers() - Method in record class codes.grow.packages.casdoor.core.Hooks.RequestInfo
-
Returns the value of the
headersrecord component. - headers() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the extra headers sent with every request.
- headers() - Method in class codes.grow.packages.casdoor.core.TransportRequest
-
Returns the request headers.
- headers() - Method in class codes.grow.packages.casdoor.core.TransportResponse
-
Returns the response headers (case-insensitive keys).
- headers(Map<String, String>) - Method in class codes.grow.packages.casdoor.core.TransportConfig.Builder
-
Adds headers sent with every request.
- health() - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Checks liveness (
GET /api/health). - health() - Method in interface codes.grow.packages.casdoor.testing.CoreTarget
-
Checks liveness; never throws for an unhealthy service.
- healthAsync() - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Asynchronous
CasdoorClient.health(). - HealthCheck - Class in codes.grow.packages.casdoor.core
-
Implements the
health()contract (SPEC section 2.4): never throws for an unhealthy or unreachable service, only forCancelledExceptionandConfigException. - HealthStatus - Record Class in codes.grow.packages.casdoor.core
-
Result of
health()(SPEC section 2.4). - HealthStatus(boolean, String, Map<String, String>) - Constructor for record class codes.grow.packages.casdoor.core.HealthStatus
-
Creates a status; details are copied.
- healthy() - Method in record class codes.grow.packages.casdoor.core.HealthStatus
-
Returns the value of the
healthyrecord component. - hooks() - Method in class codes.grow.packages.casdoor.CasdoorConfig
-
Returns the hooks.
- hooks() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the hooks.
- hooks(Hooks) - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Sets hooks.
- hooks(Hooks) - Method in class codes.grow.packages.casdoor.CasdoorConfig.Builder
-
Sets request hooks.
- hooks(Hooks) - Method in class codes.grow.packages.casdoor.core.TransportConfig.Builder
-
Sets the hooks.
- Hooks - Interface in codes.grow.packages.casdoor.core
-
Callbacks invoked for every HTTP attempt (SPEC section 2.5).
- Hooks.ErrorInfo - Record Class in codes.grow.packages.casdoor.core
-
Data passed to
Hooks.onError(codes.grow.packages.casdoor.core.Hooks.ErrorInfo). - Hooks.RequestInfo - Record Class in codes.grow.packages.casdoor.core
- Hooks.ResponseInfo - Record Class in codes.grow.packages.casdoor.core
- httpStatus() - Method in exception class codes.grow.packages.casdoor.core.CasdoorException
-
Returns the HTTP status when the error came from a response.
- HttpTransport - Class in codes.grow.packages.casdoor.core
-
The HTTP engine shared by every client of the SDK (SPEC section 2.3), built on
HttpClient. - HttpTransport(TransportConfig) - Constructor for class codes.grow.packages.casdoor.core.HttpTransport
-
Creates a transport.
I
- id() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.ScenarioResult
-
Returns the value of the
idrecord component. - id() - Method in record class codes.grow.packages.casdoor.testing.Scenario
-
Returns the value of the
idrecord component. - idempotent() - Method in class codes.grow.packages.casdoor.core.TransportRequest
-
Returns whether the request may be replayed after an uncertain send.
- idempotent(boolean) - Method in class codes.grow.packages.casdoor.core.TransportRequest.Builder
-
Marks the request idempotent (or not), overriding the method default.
- idToken() - Method in record class codes.grow.packages.casdoor.TokenSet
-
Returns the value of the
idTokenrecord component. - index() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.StepResult
-
Returns the value of the
indexrecord component. - info(String) - Method in interface codes.grow.packages.casdoor.core.Logger
-
Logs at info level without fields.
- info(String, Map<String, Object>) - Method in interface codes.grow.packages.casdoor.core.Logger
-
Logs at info level.
- initialBackoff() - Method in class codes.grow.packages.casdoor.core.RetryPolicy
-
Returns the backoff cap for the first retry.
- initialBackoff(Duration) - Method in class codes.grow.packages.casdoor.core.RetryPolicy.Builder
-
Sets the backoff cap of the first retry.
- insecureSkipVerify() - Method in class codes.grow.packages.casdoor.core.TlsOptions
-
Returns whether certificate and host name verification is disabled (tests only).
- insecureSkipVerify(boolean) - Method in class codes.grow.packages.casdoor.core.TlsOptions.Builder
-
Disables certificate and host name verification.
- integer(String, String...) - Method in class codes.grow.packages.casdoor.core.EnvReader
-
Reads an integer.
- isCleared() - Method in class codes.grow.packages.casdoor.core.Secret
-
Returns whether
Secret.clear()was called. - isClosed() - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Returns whether
CasdoorClient.close()was called. - isClosed() - Method in class codes.grow.packages.casdoor.core.HttpTransport
-
Returns whether
HttpTransport.close()was called. - isCustom() - Method in class codes.grow.packages.casdoor.core.TlsOptions
-
Returns whether any option differs from the system defaults.
- isEmpty() - Method in class codes.grow.packages.casdoor.core.Secret
-
Returns whether the value is empty.
- isSensitiveField(String, Collection<String>) - Static method in class codes.grow.packages.casdoor.core.Redaction
-
Returns whether a field or query parameter name is sensitive (case-insensitive substring).
- isSensitiveHeader(String) - Static method in class codes.grow.packages.casdoor.core.Redaction
-
Returns whether a header name is sensitive (case-insensitive).
J
- json(TypeReference<T>) - Method in class codes.grow.packages.casdoor.core.TransportResponse
-
Decodes the JSON body into a generic type.
- json(Class<T>) - Method in class codes.grow.packages.casdoor.core.TransportResponse
-
Decodes the JSON body.
- json(Object) - Method in class codes.grow.packages.casdoor.core.TransportRequest.Builder
-
Sets a JSON body encoded with Jackson.
- Json - Class in codes.grow.packages.casdoor.core
-
Shared Jackson configuration of the SDK.
- jsonNode() - Method in class codes.grow.packages.casdoor.core.TransportResponse
-
Parses the JSON body into a tree.
- JUnitConformance - Class in codes.grow.packages.casdoor.testing
-
JUnit 5 adapter: one dynamic test per scenario.
K
- KEY - Static variable in class codes.grow.packages.casdoor.core.SdkInfo
-
Catalog key of the service, e.g.
- knownSecrets() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the secret values removed from every error message, hook and log line.
- knownSecrets(Supplier<Collection<String>>) - Method in class codes.grow.packages.casdoor.core.TransportConfig.Builder
-
Sets the supplier of secret values to redact from errors, hooks and logs.
L
- LANGUAGE - Static variable in class codes.grow.packages.casdoor.core.SdkInfo
-
Language token in the
User-Agent. - logger() - Method in class codes.grow.packages.casdoor.CasdoorConfig
-
Returns the logger.
- logger() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the logger.
- logger(Logger) - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Sets the logger.
- logger(Logger) - Method in class codes.grow.packages.casdoor.CasdoorConfig.Builder
-
Sets the logger (default silent).
- logger(Logger) - Method in class codes.grow.packages.casdoor.core.TransportConfig.Builder
-
Sets the logger.
- Logger - Interface in codes.grow.packages.casdoor.core
-
Minimal logger used by the transport (SPEC section 2.5).
M
- map(TransportResponse, CasdoorException) - Method in interface codes.grow.packages.casdoor.core.ErrorMapper
-
Maps a failed response.
- mapper() - Static method in class codes.grow.packages.casdoor.core.Json
-
Returns the shared mapper.
- MAX_VENDOR_TEXT - Static variable in class codes.grow.packages.casdoor.core.Redaction
-
Maximum length of vendor error text kept in error messages.
- maxBackoff() - Method in class codes.grow.packages.casdoor.core.RetryPolicy
-
Returns the upper bound of any backoff.
- maxBackoff(Duration) - Method in class codes.grow.packages.casdoor.core.RetryPolicy.Builder
-
Sets the upper bound of every backoff.
- maxRetries() - Method in class codes.grow.packages.casdoor.core.RetryPolicy
-
Returns the maximum number of retries after the first attempt.
- maxRetries() - Method in class codes.grow.packages.casdoor.core.TransportRequest
-
Returns the retry limit override.
- maxRetries(int) - Method in class codes.grow.packages.casdoor.core.RetryPolicy.Builder
-
Sets the maximum number of retries.
- maxRetries(int) - Method in class codes.grow.packages.casdoor.core.TransportRequest.Builder
-
Overrides the retry limit for this call.
- maxRetryAfter() - Method in class codes.grow.packages.casdoor.core.RetryPolicy
-
Returns the longest
Retry-Afterwait the client accepts. - maxRetryAfter(Duration) - Method in class codes.grow.packages.casdoor.core.RetryPolicy.Builder
-
Sets the longest accepted
Retry-After. - message() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.StepResult
-
Returns the value of the
messagerecord component. - method() - Method in record class codes.grow.packages.casdoor.core.Hooks.ErrorInfo
-
Returns the value of the
methodrecord component. - method() - Method in record class codes.grow.packages.casdoor.core.Hooks.RequestInfo
-
Returns the value of the
methodrecord component. - method() - Method in record class codes.grow.packages.casdoor.core.Hooks.ResponseInfo
-
Returns the value of the
methodrecord component. - method() - Method in class codes.grow.packages.casdoor.core.TransportRequest
-
Returns the HTTP method.
- multiplier() - Method in class codes.grow.packages.casdoor.core.RetryPolicy
-
Returns the exponential growth factor.
- multiplier(double) - Method in class codes.grow.packages.casdoor.core.RetryPolicy.Builder
-
Sets the exponential growth factor.
N
- none() - Static method in class codes.grow.packages.casdoor.core.RetryPolicy
-
Returns a policy that never retries.
- NONE - Static variable in interface codes.grow.packages.casdoor.core.ErrorMapper
-
Keeps the default error.
- NONE - Static variable in interface codes.grow.packages.casdoor.core.Hooks
-
Hooks that do nothing.
- NOOP - Static variable in interface codes.grow.packages.casdoor.core.Logger
-
A logger that discards everything.
- NOT_FOUND - Enum constant in enum class codes.grow.packages.casdoor.core.ErrorCode
-
HTTP 404 or a missing record.
- NotFoundException - Exception Class in codes.grow.packages.casdoor.core
-
The record does not exist (HTTP 404).
- NotFoundException(String) - Constructor for exception class codes.grow.packages.casdoor.core.NotFoundException
-
Creates the exception.
- NotFoundException(String, Integer, String, boolean, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.NotFoundException
-
Creates the exception with response details and an explicit
retryableflag, for service subclasses whose errors differ from the default of the code (for example aCONFLICTthat may succeed when retried, or anUNAVAILABLEthat will not). - NotFoundException(String, Integer, String, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.NotFoundException
-
Creates the exception with response details.
- NotFoundException(String, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.NotFoundException
-
Creates the exception with a cause.
O
- oauthError(String, String, String) - Static method in class codes.grow.packages.casdoor.CasdoorFlows
-
Maps an OAuth
{"error","error_description"}body. - of(char[]) - Static method in class codes.grow.packages.casdoor.core.Secret
-
Wraps a copy of a character array; the caller may clear its own array afterwards.
- of(ErrorCode, String, Integer, String, boolean, Duration, Throwable) - Static method in exception class codes.grow.packages.casdoor.core.CasdoorException
-
Like
CasdoorException.of(ErrorCode, String, Integer, String, Duration, Throwable)with an explicitretryableflag instead of the default of the code. - of(ErrorCode, String, Integer, String, Duration, Throwable) - Static method in exception class codes.grow.packages.casdoor.core.CasdoorException
-
Creates the subclass that matches
code. - of(Object) - Static method in class codes.grow.packages.casdoor.testing.OpResult
-
Wraps a value.
- of(String) - Static method in class codes.grow.packages.casdoor.core.Secret
-
Wraps a string value.
- of(Throwable) - Static method in enum class codes.grow.packages.casdoor.core.ErrorCode
-
Returns the code of an SDK exception.
- of(Map<String, String>) - Static method in class codes.grow.packages.casdoor.core.EnvReader
-
Creates a reader with
EnvReader.DEFAULT_PREFIXover an explicit map. - ok() - Static method in record class codes.grow.packages.casdoor.core.HealthStatus
-
A healthy
okstatus without details. - onError(Hooks.ErrorInfo) - Method in interface codes.grow.packages.casdoor.core.Hooks
-
Called when an attempt failed (network error, timeout or error status).
- only(String...) - Method in class codes.grow.packages.casdoor.testing.ConformanceRunner.Builder
-
Restricts the run to these scenario ids.
- onRequest(Hooks.RequestInfo) - Method in interface codes.grow.packages.casdoor.core.Hooks
-
Called before each attempt.
- onResponse(Hooks.ResponseInfo) - Method in interface codes.grow.packages.casdoor.core.Hooks
-
Called when an attempt received a response (any status).
- op() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.StepResult
-
Returns the value of the
oprecord component. - op() - Method in record class codes.grow.packages.casdoor.testing.Scenario.Step
-
Returns the value of the
oprecord component. - op(String, String, OpHandler) - Method in class codes.grow.packages.casdoor.testing.ConformanceRunner.Builder
-
Registers one operation.
- operation() - Method in class codes.grow.packages.casdoor.core.TransportRequest
-
Returns the operation name used in error messages.
- operation(String) - Method in class codes.grow.packages.casdoor.core.TransportRequest.Builder
-
Sets the operation name used in error messages.
- OpHandler - Interface in codes.grow.packages.casdoor.testing
-
Executes one scenario step and returns its result (or an
OpResult). - OpResult - Class in codes.grow.packages.casdoor.testing
-
A step result with optional extra views for the expectations
countandtree. - ops() - Method in interface codes.grow.packages.casdoor.testing.ConformanceOps
-
Returns the handlers by operation name.
- ops() - Method in class codes.grow.packages.casdoor.testing.CoreOps
- optArg(String) - Method in class codes.grow.packages.casdoor.testing.StepContext
-
Returns an optional argument.
- organization() - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings
-
Casdoor organization.
- organization(String) - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings.Builder
-
Sets the organization.
P
- parse(JsonNode) - Static method in record class codes.grow.packages.casdoor.testing.Scenario
-
Parses a scenario document.
- parseBool(String) - Static method in class codes.grow.packages.casdoor.core.EnvReader
-
Parses a boolean:
true/false/1/0/yes/no/on/off, case-insensitive. - parseDuration(String) - Static method in class codes.grow.packages.casdoor.core.EnvReader
-
Parses a duration: integer milliseconds (
1500) or Go-style units (500ms,10s,2m,1h,1m30s). - parseRateLimitReset(String, Instant) - Static method in class codes.grow.packages.casdoor.core.RetryPolicy
-
Parses a vendor rate-limit reset header such as
X-RateLimit-Reset: delay seconds (decimals allowed), Unix epoch seconds (values of at least1000000000) or an HTTP-date. - parseRetryAfter(String, Instant) - Static method in class codes.grow.packages.casdoor.core.RetryPolicy
-
Parses a
Retry-Afterheader: delay seconds or an HTTP-date. - passed() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport
-
Returns whether no scenario failed.
- PASSED - Enum constant in enum class codes.grow.packages.casdoor.testing.ConformanceReport.Status
-
Every expectation held.
- path() - Method in class codes.grow.packages.casdoor.core.TransportRequest
-
Returns the path.
- PERMISSION_DENIED - Enum constant in enum class codes.grow.packages.casdoor.core.ErrorCode
-
HTTP 403: the credentials lack a permission.
- PermissionDeniedException - Exception Class in codes.grow.packages.casdoor.core
-
The credentials lack a permission (HTTP 403).
- PermissionDeniedException(String) - Constructor for exception class codes.grow.packages.casdoor.core.PermissionDeniedException
-
Creates the exception.
- PermissionDeniedException(String, Integer, String, boolean, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.PermissionDeniedException
-
Creates the exception with response details and an explicit
retryableflag, for service subclasses whose errors differ from the default of the code (for example aCONFLICTthat may succeed when retried, or anUNAVAILABLEthat will not). - PermissionDeniedException(String, Integer, String, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.PermissionDeniedException
-
Creates the exception with response details.
- PermissionDeniedException(String, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.PermissionDeniedException
-
Creates the exception with a cause.
- ping() - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Performs an authenticated round trip (
GET /v1/ping). - ping() - Method in interface codes.grow.packages.casdoor.testing.CoreTarget
-
Performs an authenticated round trip.
- pingAsync() - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Asynchronous
CasdoorClient.ping(). - Pkce(String, String) - Constructor for record class codes.grow.packages.casdoor.CasdoorFlows.Pkce
-
Creates an instance of a
Pkcerecord class. - pkceChallenge(String) - Static method in class codes.grow.packages.casdoor.CasdoorFlows
-
S256 challenge of a verifier.
- poll(String, Duration) - Method in class codes.grow.packages.casdoor.testing.ConformanceRunner.Builder
-
Repeats a failing step of
opuntil its expectation passes ortimeout(or the step'stimeoutMsargument) runs out, for eventually consistent backends. - Poll - Class in codes.grow.packages.casdoor.core
-
Generic polling helper (
pollUntil): used bywaitForLog,waitForTraceand service waiters. - pollInterval(Duration) - Method in class codes.grow.packages.casdoor.testing.ConformanceRunner.Builder
-
Sets the pause between repeated steps (default
ConformanceRunner.DEFAULT_POLL_INTERVAL). - post(String) - Static method in class codes.grow.packages.casdoor.core.TransportRequest
-
Starts a POST request.
- prefix(String) - Method in class codes.grow.packages.casdoor.testing.ConformanceRunner.Builder
-
Sets the
${prefix}template (may contain${run}). - proxy() - Method in class codes.grow.packages.casdoor.CasdoorConfig
-
Returns the explicit proxy URL.
- proxy() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the proxy URL.
- proxy(String) - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Sets the proxy URL.
- proxy(String) - Method in class codes.grow.packages.casdoor.CasdoorConfig.Builder
-
Sets an explicit proxy URL; environment proxies (
HTTPS_PROXY) are never used. - proxy(String) - Method in class codes.grow.packages.casdoor.core.TransportConfig.Builder
-
Sets an explicit HTTP proxy URL, e.g.
- publicUrl() - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings
-
Browser-facing URL (empty = the client URL).
- publicUrl(String) - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings.Builder
-
Sets the browser-facing URL.
- put(String) - Static method in class codes.grow.packages.casdoor.core.TransportRequest
-
Starts a PUT request.
Q
- query() - Method in class codes.grow.packages.casdoor.core.TransportRequest
-
Returns the query parameters in insertion order.
- query(String, Object) - Method in class codes.grow.packages.casdoor.core.TransportRequest.Builder
-
Adds a query parameter (repeatable).
R
- random(RandomGenerator) - Method in class codes.grow.packages.casdoor.core.RetryPolicy.Builder
-
Injects the random source used for jitter (tests).
- randomState() - Static method in class codes.grow.packages.casdoor.CasdoorFlows
-
Random URL-safe value for
stateornonce. - RATE_LIMITED - Enum constant in enum class codes.grow.packages.casdoor.core.ErrorCode
-
HTTP 429.
- RateLimitException - Exception Class in codes.grow.packages.casdoor.core
-
The service rate-limited the call (HTTP 429); see
CasdoorException.retryAfter(). - RateLimitException(String) - Constructor for exception class codes.grow.packages.casdoor.core.RateLimitException
-
Creates the exception.
- RateLimitException(String, Integer, String, boolean, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.RateLimitException
-
Creates the exception with response details and an explicit
retryableflag, for service subclasses whose errors differ from the default of the code (for example aCONFLICTthat may succeed when retried, or anUNAVAILABLEthat will not). - RateLimitException(String, Integer, String, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.RateLimitException
-
Creates the exception with response details.
- RateLimitException(String, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.RateLimitException
-
Creates the exception with a cause.
- raw() - Method in record class codes.grow.packages.casdoor.testing.Scenario
-
Returns the value of the
rawrecord component. - reason() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.ScenarioResult
-
Returns the value of the
reasonrecord component. - REDACTED - Static variable in class codes.grow.packages.casdoor.core.Redaction
-
Replacement for every redacted value.
- redactFields(Map<String, ?>) - Static method in class codes.grow.packages.casdoor.core.Redaction
-
Same as
Redaction.redactFields(Map, Collection)without extra keys. - redactFields(Map<String, ?>, Collection<String>) - Static method in class codes.grow.packages.casdoor.core.Redaction
-
Returns a deep copy of a structure with the values of sensitive keys replaced; recurses into nested maps and lists.
- redactHeaderLists(Map<String, List<String>>) - Static method in class codes.grow.packages.casdoor.core.Redaction
-
Returns a copy of multi-valued headers with sensitive values replaced.
- redactHeaders(Map<String, String>) - Static method in class codes.grow.packages.casdoor.core.Redaction
-
Returns a copy of single-valued headers with sensitive values replaced.
- Redaction - Class in codes.grow.packages.casdoor.core
-
Redaction helpers for headers, URLs, structured fields and free text (SPEC section 2.6).
- redactText(String, Collection<String>) - Static method in class codes.grow.packages.casdoor.core.Redaction
-
Replaces every occurrence of each known secret value (length 4 or more) with "[REDACTED]".
- redactUrl(String) - Static method in class codes.grow.packages.casdoor.core.Redaction
-
Redacts user-info passwords and the values of sensitive query parameters in a URL.
- redirectUri() - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings
-
Default redirect URI of the code flow.
- redirectUri(String) - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings.Builder
-
Sets the redirect URI.
- refresh(String) - Method in class codes.grow.packages.casdoor.CasdoorClient
-
New tokens from a refresh token.
- refreshToken() - Method in record class codes.grow.packages.casdoor.TokenSet
-
Returns the value of the
refreshTokenrecord component. - register(ConformanceOps) - Method in class codes.grow.packages.casdoor.testing.ConformanceRunner.Builder
-
Registers (or overrides) operations of a category.
- register(AutoCloseable) - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Registers a resource (watcher, renewer, batch processor) closed with the client.
- REQUEST_ID_HEADERS - Static variable in class codes.grow.packages.casdoor.core.HttpTransport
-
Response headers that carry a vendor request id, in lookup order.
- requestId() - Method in exception class codes.grow.packages.casdoor.core.CasdoorException
-
Returns the vendor request id header of the failed response.
- requestId() - Method in record class codes.grow.packages.casdoor.core.Hooks.ResponseInfo
-
Returns the value of the
requestIdrecord component. - requestId() - Method in class codes.grow.packages.casdoor.core.TransportResponse
-
Returns the vendor request id header.
- RequestInfo(String, String, Map<String, List<String>>, int) - Constructor for record class codes.grow.packages.casdoor.core.Hooks.RequestInfo
-
Creates an instance of a
RequestInforecord class. - requestTimeout() - Method in class codes.grow.packages.casdoor.CasdoorConfig
-
Returns the per-attempt timeout.
- requestTimeout() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the per-attempt timeout.
- requestTimeout(Duration) - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Sets the per-attempt timeout.
- requestTimeout(Duration) - Method in class codes.grow.packages.casdoor.CasdoorConfig.Builder
-
Sets the per-attempt timeout (default 30 s).
- requestTimeout(Duration) - Method in class codes.grow.packages.casdoor.core.TransportConfig.Builder
-
Sets the per-attempt timeout.
- requires() - Method in record class codes.grow.packages.casdoor.testing.Scenario
-
Returns the value of the
requiresrecord component. - requires() - Method in record class codes.grow.packages.casdoor.testing.Scenario.Step
-
Returns the value of the
requiresrecord component. - resolve(String, Map<String, List<String>>) - Method in class codes.grow.packages.casdoor.core.HttpTransport
-
Resolves a request path and query against the base URL.
- ResponseInfo(String, String, int, long, int, Optional<String>) - Constructor for record class codes.grow.packages.casdoor.core.Hooks.ResponseInfo
-
Creates an instance of a
ResponseInforecord class. - retry() - Method in class codes.grow.packages.casdoor.CasdoorConfig
-
Returns the retry policy.
- retry() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the retry policy.
- retry(RetryPolicy) - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Sets the retry policy.
- retry(RetryPolicy) - Method in class codes.grow.packages.casdoor.CasdoorConfig.Builder
-
Sets the retry policy (default
RetryPolicy.defaults()). - retry(RetryPolicy) - Method in class codes.grow.packages.casdoor.core.TransportConfig.Builder
-
Sets the retry policy.
- retryable() - Method in exception class codes.grow.packages.casdoor.core.CasdoorException
-
Returns whether retrying the same call may succeed.
- retryable() - Method in enum class codes.grow.packages.casdoor.core.ErrorCode
-
Returns whether errors with this code are retryable by default.
- retryAfter() - Method in exception class codes.grow.packages.casdoor.core.CasdoorException
-
Returns the wait the server asked for (
Retry-After). - retryAfterHeaders() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the vendor headers read as a retry hint when a 429 or 503 response has no
Retry-After(for exampleX-RateLimit-Reset), parsed withRetryPolicy.parseRateLimitReset(java.lang.String, java.time.Instant). - retryAfterHeaders(String...) - Method in class codes.grow.packages.casdoor.core.TransportConfig.Builder
-
Adds vendor headers read as a retry hint when a 429 or 503 response has no
Retry-After(for exampleX-RateLimit-Reset). - RetryPolicy - Class in codes.grow.packages.casdoor.core
-
Retry settings with full-jitter exponential backoff (SPEC section 2.3).
- RetryPolicy.Builder - Class in codes.grow.packages.casdoor.core
-
Builder for
RetryPolicy. - reveal() - Method in class codes.grow.packages.casdoor.core.Secret
-
Returns the credential as a string.
- revealChars() - Method in class codes.grow.packages.casdoor.core.Secret
-
Returns a copy of the credential characters.
- run() - Method in class codes.grow.packages.casdoor.testing.ConformanceRunner
-
Runs every selected scenario.
- run(StepContext) - Method in interface codes.grow.packages.casdoor.testing.OpHandler
-
Runs the step.
- runScenario(Scenario) - Method in class codes.grow.packages.casdoor.testing.ConformanceRunner
-
Runs one scenario.
S
- sameValue(Secret) - Method in class codes.grow.packages.casdoor.core.Secret
-
Compares the values in constant time.
- save() - Method in record class codes.grow.packages.casdoor.testing.Scenario.Step
-
Returns the value of the
saverecord component. - scenario() - Method in class codes.grow.packages.casdoor.testing.StepContext
-
Returns the running scenario.
- Scenario - Record Class in codes.grow.packages.casdoor.testing
-
A parsed conformance scenario (
conformance/scenarios/*.json). - Scenario(String, String, String, List<String>, List<Scenario.Step>, JsonNode) - Constructor for record class codes.grow.packages.casdoor.testing.Scenario
-
Creates a scenario; lists are copied.
- Scenario.Step - Record Class in codes.grow.packages.casdoor.testing
-
One step of a scenario.
- scenarioDir(Path) - Method in class codes.grow.packages.casdoor.testing.ConformanceRunner.Builder
-
Reads scenarios from this directory instead of searching for
conformance/scenarios. - ScenarioResult(String, String, ConformanceReport.Status, String, List<ConformanceReport.StepResult>, long) - Constructor for record class codes.grow.packages.casdoor.testing.ConformanceReport.ScenarioResult
-
Creates a result; the list is copied.
- scenarios() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport
-
Returns the value of the
scenariosrecord component. - scenarios() - Method in class codes.grow.packages.casdoor.testing.ConformanceRunner
-
Returns the scenarios of the categories that have a target, sorted by id.
- scope() - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings
-
OAuth scope.
- scope(String) - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings.Builder
-
Sets the scope.
- SdkInfo - Class in codes.grow.packages.casdoor.core
-
Package identity used in the
User-Agentheader. - Secret - Class in codes.grow.packages.casdoor.core
-
A credential held in a
char[]that never prints itself. - send(TransportRequest) - Method in class codes.grow.packages.casdoor.core.HttpTransport
-
Executes a request with retries and returns a 2xx (or accepted) response.
- sendAsync(TransportRequest) - Method in class codes.grow.packages.casdoor.core.HttpTransport
-
Executes a request with retries asynchronously.
- sendJson(TransportRequest) - Method in class codes.grow.packages.casdoor.core.HttpTransport
-
Convenience: sends a request and decodes the JSON body.
- serverVersion() - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Returns the server version (
GET /version). - serverVersion() - Method in interface codes.grow.packages.casdoor.testing.CoreTarget
-
Returns the server version.
- serverVersionAsync() - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Asynchronous
CasdoorClient.serverVersion(). - serviceName(String) - Method in class codes.grow.packages.casdoor.testing.ConformanceRunner.Builder
-
Sets
${serviceName}(the tracing service name the factory configured). - settings() - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Returns the Casdoor application settings.
- settings(CasdoorAuthSettings) - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Sets the Casdoor application settings (default: from the environment given to
CasdoorClient.Builder.fromEnv(EnvReader), else empty). - signIn(String, String, String) - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Headless password sign-in:
/api/login(code flow + PKCE) then the token endpoint. - signOut(String) - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Ends the Casdoor session of the token (
/api/logout). - SKIPPED - Enum constant in enum class codes.grow.packages.casdoor.testing.ConformanceReport.Status
-
A required capability was not declared.
- source(String, String...) - Method in class codes.grow.packages.casdoor.core.EnvReader
-
Returns the name of the first variable that is set, for error messages.
- sslContext() - Method in class codes.grow.packages.casdoor.core.TlsOptions
-
Builds the SSL context for these options.
- status() - Method in record class codes.grow.packages.casdoor.core.HealthStatus
-
Returns the value of the
statusrecord component. - status() - Method in record class codes.grow.packages.casdoor.core.Hooks.ResponseInfo
-
Returns the value of the
statusrecord component. - status() - Method in class codes.grow.packages.casdoor.core.TransportResponse
-
Returns the HTTP status.
- status() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.ScenarioResult
-
Returns the value of the
statusrecord component. - status() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.StepResult
-
Returns the value of the
statusrecord component. - step() - Method in class codes.grow.packages.casdoor.testing.StepContext
-
Returns the current step.
- Step(String, JsonNode, JsonNode, String, List<String>) - Constructor for record class codes.grow.packages.casdoor.testing.Scenario.Step
-
Creates a step; the list is copied.
- StepContext - Class in codes.grow.packages.casdoor.testing
-
Everything an
OpHandlerneeds for one step. - StepResult(int, String, ConformanceReport.Status, String) - Constructor for record class codes.grow.packages.casdoor.testing.ConformanceReport.StepResult
-
Creates an instance of a
StepResultrecord class. - steps() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.ScenarioResult
-
Returns the value of the
stepsrecord component. - steps() - Method in record class codes.grow.packages.casdoor.testing.Scenario
-
Returns the value of the
stepsrecord component. - string(String, String...) - Method in class codes.grow.packages.casdoor.core.EnvReader
-
Reads a string.
- stringify(Object) - Static method in class codes.grow.packages.casdoor.core.Json
-
Encodes a value as a JSON string.
- substitute(String) - Method in class codes.grow.packages.casdoor.testing.StepContext
-
Substitutes
${name}variables in a string. - substitute(String, Map<String, String>) - Static method in class codes.grow.packages.casdoor.testing.ConformanceRunner
-
Replaces
${name}placeholders; unknown names are kept as they are. - substituteNode(JsonNode, Map<String, String>) - Static method in class codes.grow.packages.casdoor.testing.ConformanceRunner
-
Substitutes placeholders in every string (and object key) of a JSON tree.
- summary() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport
-
Returns a multi-line summary listing every scenario.
- system() - Static method in class codes.grow.packages.casdoor.core.EnvReader
-
Creates a reader with
EnvReader.DEFAULT_PREFIXover the process environment.
T
- target() - Method in class codes.grow.packages.casdoor.testing.StepContext
-
Returns the scenario target.
- target(Class<T>) - Method in class codes.grow.packages.casdoor.testing.StepContext
-
Returns the target cast to a type.
- target(String, TargetFactory) - Method in class codes.grow.packages.casdoor.testing.ConformanceRunner.Builder
-
Sets the target factory of a category; categories without a target do not run.
- TargetFactory - Interface in codes.grow.packages.casdoor.testing
-
Creates the object a scenario runs against (client, provider, log client, tracing handle).
- text() - Method in class codes.grow.packages.casdoor.core.TransportResponse
-
Returns the body decoded as UTF-8.
- timeout() - Method in class codes.grow.packages.casdoor.core.TransportRequest
-
Returns the per-attempt timeout override.
- timeout(Duration) - Method in class codes.grow.packages.casdoor.core.TransportRequest.Builder
-
Overrides the per-attempt timeout for this call.
- TIMEOUT - Enum constant in enum class codes.grow.packages.casdoor.core.ErrorCode
-
Connect, request or total deadline exceeded, HTTP 408 or 504.
- TimeoutException - Exception Class in codes.grow.packages.casdoor.core
-
A connect, request or total deadline was exceeded (or HTTP 408, 504).
- TimeoutException(String) - Constructor for exception class codes.grow.packages.casdoor.core.TimeoutException
-
Creates the exception.
- TimeoutException(String, Integer, String, boolean, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.TimeoutException
-
Creates the exception with response details and an explicit
retryableflag, for service subclasses whose errors differ from the default of the code (for example aCONFLICTthat may succeed when retried, or anUNAVAILABLEthat will not). - TimeoutException(String, Integer, String, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.TimeoutException
-
Creates the exception with response details.
- TimeoutException(String, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.TimeoutException
-
Creates the exception with a cause.
- tls() - Method in class codes.grow.packages.casdoor.CasdoorConfig
-
Returns the TLS options.
- tls() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the TLS options.
- tls(TlsOptions) - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Sets the TLS options.
- tls(TlsOptions) - Method in class codes.grow.packages.casdoor.CasdoorConfig.Builder
-
Sets the TLS options; environment TLS variables are then ignored.
- tls(TlsOptions) - Method in class codes.grow.packages.casdoor.core.TransportConfig.Builder
-
Sets the TLS options.
- TlsOptions - Class in codes.grow.packages.casdoor.core
-
TLS settings: custom CA, client certificate (mutual TLS) and the test-only
insecureSkipVerify. - TlsOptions.Builder - Class in codes.grow.packages.casdoor.core
-
Builder for
TlsOptions. - toBuilder() - Method in class codes.grow.packages.casdoor.core.RetryPolicy
-
Returns a builder initialised from this policy.
- toBuilder() - Method in class codes.grow.packages.casdoor.core.TlsOptions
-
Returns a builder initialised from these options.
- token() - Method in class codes.grow.packages.casdoor.CasdoorConfig
-
Returns the API token.
- token(Secret) - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Sets the API token.
- token(Secret) - Method in class codes.grow.packages.casdoor.CasdoorConfig.Builder
-
Sets the API token.
- token(String) - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Sets the API token.
- token(String) - Method in class codes.grow.packages.casdoor.CasdoorConfig.Builder
-
Sets the API token.
- TokenSet - Record Class in codes.grow.packages.casdoor
-
OAuth tokens returned by sign-in, refresh and code exchange.
- TokenSet(String, Optional<String>, Optional<String>, String, Optional<Instant>) - Constructor for record class codes.grow.packages.casdoor.TokenSet
-
Creates an instance of a
TokenSetrecord class. - tokenType() - Method in record class codes.grow.packages.casdoor.TokenSet
-
Returns the value of the
tokenTyperecord component. - toString() - Method in class codes.grow.packages.casdoor.CasdoorAuthSettings
- toString() - Method in class codes.grow.packages.casdoor.CasdoorClient
- toString() - Method in class codes.grow.packages.casdoor.CasdoorConfig
- toString() - Method in record class codes.grow.packages.casdoor.CasdoorFlows.Pkce
-
Returns a string representation of this record class.
- toString() - Method in record class codes.grow.packages.casdoor.core.HealthStatus
-
Returns a string representation of this record class.
- toString() - Method in record class codes.grow.packages.casdoor.core.Hooks.ErrorInfo
-
Returns a string representation of this record class.
- toString() - Method in record class codes.grow.packages.casdoor.core.Hooks.RequestInfo
-
Returns a string representation of this record class.
- toString() - Method in record class codes.grow.packages.casdoor.core.Hooks.ResponseInfo
-
Returns a string representation of this record class.
- toString() - Method in class codes.grow.packages.casdoor.core.RetryPolicy
- toString() - Method in class codes.grow.packages.casdoor.core.Secret
-
Always "[REDACTED]".
- toString() - Method in class codes.grow.packages.casdoor.core.TlsOptions
- toString() - Method in class codes.grow.packages.casdoor.core.TransportResponse
- toString() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.ScenarioResult
-
Returns a string representation of this record class.
- toString() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport.StepResult
-
Returns a string representation of this record class.
- toString() - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport
-
Returns a string representation of this record class.
- toString() - Method in record class codes.grow.packages.casdoor.testing.Scenario.Step
-
Returns a string representation of this record class.
- toString() - Method in record class codes.grow.packages.casdoor.testing.Scenario
-
Returns a string representation of this record class.
- toString() - Method in record class codes.grow.packages.casdoor.TokenSet
-
Returns a string representation of this record class.
- totalTimeout() - Method in class codes.grow.packages.casdoor.CasdoorConfig
-
Returns the total timeout per call including retries.
- totalTimeout() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the budget of a whole call including retries and backoff.
- totalTimeout(Duration) - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Sets the total timeout.
- totalTimeout(Duration) - Method in class codes.grow.packages.casdoor.CasdoorConfig.Builder
-
Sets the total timeout per call including retries (default 120 s).
- totalTimeout(Duration) - Method in class codes.grow.packages.casdoor.core.TransportConfig.Builder
-
Sets the total budget per call.
- toTransportConfig() - Method in class codes.grow.packages.casdoor.CasdoorConfig
-
Translates the common fields into transport settings.
- transport() - Method in class codes.grow.packages.casdoor.CasdoorClient
-
Returns the HTTP transport, for service modules built on this client.
- TransportConfig - Class in codes.grow.packages.casdoor.core
-
Settings of one
HttpTransport. - TransportConfig.Builder - Class in codes.grow.packages.casdoor.core
-
Builder for
TransportConfig. - TransportRequest - Class in codes.grow.packages.casdoor.core
-
One logical HTTP call executed by
HttpTransport(with retries). - TransportRequest.Builder - Class in codes.grow.packages.casdoor.core
-
Builder for
TransportRequest. - TransportResponse - Class in codes.grow.packages.casdoor.core
-
A response returned by
HttpTransport(2xx or an accepted status). - TransportResponse(int, Map<String, List<String>>, byte[], int, Duration, String) - Constructor for class codes.grow.packages.casdoor.core.TransportResponse
-
Creates a response (used by the transport and by tests).
- tree() - Method in class codes.grow.packages.casdoor.testing.OpResult
-
Returns the tree view.
- tree(byte[]) - Static method in class codes.grow.packages.casdoor.core.Json
-
Parses JSON bytes into a tree.
- truncate(String, int) - Static method in class codes.grow.packages.casdoor.core.Redaction
-
Truncates text to
maxcharacters, appending an ellipsis when cut.
U
- UNAVAILABLE - Enum constant in enum class codes.grow.packages.casdoor.core.ErrorCode
-
Network error or HTTP 500, 502, 503.
- UnavailableException - Exception Class in codes.grow.packages.casdoor.core
-
Network error or HTTP 500, 502, 503.
- UnavailableException(String) - Constructor for exception class codes.grow.packages.casdoor.core.UnavailableException
-
Creates the exception.
- UnavailableException(String, Integer, String, boolean, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.UnavailableException
-
Creates the exception with response details and an explicit
retryableflag, for service subclasses whose errors differ from the default of the code (for example aCONFLICTthat may succeed when retried, or anUNAVAILABLEthat will not). - UnavailableException(String, Integer, String, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.UnavailableException
-
Creates the exception with response details.
- UnavailableException(String, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.UnavailableException
-
Creates the exception with a cause.
- unreachable(String) - Static method in record class codes.grow.packages.casdoor.core.HealthStatus
-
The status for a service that could not be reached.
- UNSUPPORTED - Enum constant in enum class codes.grow.packages.casdoor.core.ErrorCode
-
A capability the service or deployment does not offer (HTTP 501).
- UnsupportedException - Exception Class in codes.grow.packages.casdoor.core
-
The service or deployment does not offer this capability (HTTP 501).
- UnsupportedException(String) - Constructor for exception class codes.grow.packages.casdoor.core.UnsupportedException
-
Creates the exception.
- UnsupportedException(String, Integer, String, boolean, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.UnsupportedException
-
Creates the exception with response details and an explicit
retryableflag, for service subclasses whose errors differ from the default of the code (for example aCONFLICTthat may succeed when retried, or anUNAVAILABLEthat will not). - UnsupportedException(String, Integer, String, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.UnsupportedException
-
Creates the exception with response details.
- UnsupportedException(String, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.UnsupportedException
-
Creates the exception with a cause.
- until(String, Duration, Duration, Callable<Optional<T>>) - Static method in class codes.grow.packages.casdoor.core.Poll
-
Calls
attempteveryintervaluntil it returns a value ortimeoutpasses. - untilAsync(String, Duration, Duration, Supplier<CompletableFuture<Optional<T>>>) - Static method in class codes.grow.packages.casdoor.core.Poll
-
Asynchronous variant of
Poll.until(java.lang.String, java.time.Duration, java.time.Duration, java.util.concurrent.Callable<java.util.Optional<T>>): no thread blocks between attempts. - url() - Method in class codes.grow.packages.casdoor.CasdoorConfig
-
Returns the endpoint base URL.
- url() - Method in record class codes.grow.packages.casdoor.core.Hooks.ErrorInfo
-
Returns the value of the
urlrecord component. - url() - Method in record class codes.grow.packages.casdoor.core.Hooks.RequestInfo
-
Returns the value of the
urlrecord component. - url() - Method in record class codes.grow.packages.casdoor.core.Hooks.ResponseInfo
-
Returns the value of the
urlrecord component. - url(String) - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Sets the endpoint base URL.
- url(String) - Method in class codes.grow.packages.casdoor.CasdoorConfig.Builder
-
Sets the endpoint base URL.
- userAgent() - Static method in class codes.grow.packages.casdoor.core.SdkInfo
-
Returns the standard user agent:
grow-codes-<key>/<version> (java). - userAgent() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the full
User-Agentheader value. - userAgentSuffix() - Method in class codes.grow.packages.casdoor.CasdoorConfig
-
Returns the user agent suffix.
- userAgentSuffix() - Method in class codes.grow.packages.casdoor.core.TransportConfig
-
Returns the user agent suffix.
- userAgentSuffix(String) - Method in class codes.grow.packages.casdoor.CasdoorClient.Builder
-
Sets the user agent suffix.
- userAgentSuffix(String) - Method in class codes.grow.packages.casdoor.CasdoorConfig.Builder
-
Sets the text appended to the
User-Agent. - userAgentSuffix(String) - Method in class codes.grow.packages.casdoor.core.TransportConfig.Builder
-
Sets the text appended to the standard user agent.
V
- validate() - Method in class codes.grow.packages.casdoor.CasdoorConfig
-
Checks URL scheme, positive timeouts, retry limits and TLS pairs.
- validate() - Method in class codes.grow.packages.casdoor.core.TlsOptions
-
Checks that certificate and key come together.
- VALIDATION - Enum constant in enum class codes.grow.packages.casdoor.core.ErrorCode
-
HTTP 400, 413, 422, other 4xx or bad input caught client side.
- ValidationException - Exception Class in codes.grow.packages.casdoor.core
-
The request or a value is invalid (HTTP 400, 413, 422, other 4xx).
- ValidationException(String) - Constructor for exception class codes.grow.packages.casdoor.core.ValidationException
-
Creates the exception.
- ValidationException(String, Integer, String, boolean, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.ValidationException
-
Creates the exception with response details and an explicit
retryableflag, for service subclasses whose errors differ from the default of the code (for example aCONFLICTthat may succeed when retried, or anUNAVAILABLEthat will not). - ValidationException(String, Integer, String, Duration, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.ValidationException
-
Creates the exception with response details.
- ValidationException(String, Throwable) - Constructor for exception class codes.grow.packages.casdoor.core.ValidationException
-
Creates the exception with a cause.
- value() - Method in class codes.grow.packages.casdoor.testing.OpResult
-
Returns the wrapped value.
- valueOf(String) - Static method in enum class codes.grow.packages.casdoor.core.ErrorCode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class codes.grow.packages.casdoor.testing.ConformanceReport.Status
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class codes.grow.packages.casdoor.core.ErrorCode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class codes.grow.packages.casdoor.testing.ConformanceReport.Status
-
Returns an array containing the constants of this enum class, in the order they are declared.
- variable(String) - Method in class codes.grow.packages.casdoor.testing.StepContext
-
Returns a variable (
run,prefix,serviceNameor a saved name). - variable(String, String) - Method in class codes.grow.packages.casdoor.testing.ConformanceRunner.Builder
-
Sets an extra variable, e.g.
- VERSION - Static variable in class codes.grow.packages.casdoor.core.SdkInfo
-
Package version (from the Maven build).
- view(Object) - Static method in class codes.grow.packages.casdoor.testing.Expectations
-
Returns the JSON view of a value used by
equals,contains,typeandsorted.
W
- warn(String) - Method in interface codes.grow.packages.casdoor.core.Logger
-
Logs at warn level without fields.
- warn(String, Map<String, Object>) - Method in interface codes.grow.packages.casdoor.core.Logger
-
Logs at warn level.
- willRetry() - Method in record class codes.grow.packages.casdoor.core.Hooks.ErrorInfo
-
Returns the value of the
willRetryrecord component. - wireValue() - Method in enum class codes.grow.packages.casdoor.core.ErrorCode
-
Returns the wire value used in conformance scenarios and JSON.
- with(ConformanceReport.Status) - Method in record class codes.grow.packages.casdoor.testing.ConformanceReport
-
Returns the scenarios with a status.
- withCount(int) - Method in class codes.grow.packages.casdoor.testing.OpResult
-
Returns a copy with an explicit count (e.g. the number of spans of a trace).
- withTree(Map<String, List<String>>) - Method in class codes.grow.packages.casdoor.testing.OpResult
-
Returns a copy with a parent-name to child-names view (span trees).
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form