Record Class TenantCredentialContext
Single-tenant deployments never need to construct this
explicitly — the framework supplies
SINGLE_TENANT_DEFAULT when no tenant is resolved.
Multi-tenant deployments resolve the TenantId from the
inbound request (subdomain, header, authenticated subject) and
pass it through.
The context carries the tenantId only; it deliberately
does not embed the candidate username, the email
address, or any other personally identifying value. Tenant
routing decisions live at this scope; subject routing decisions
live in AccessContext / PasswordContext.
Public failure surfaces must never reveal whether a given
tenant exists (CWE-203, CWE-209). The framework guarantees that
the TenantId is not formatted into
CompromisedPasswordResult, AbuseDecision,
CredentialVerificationResult or any other adapter-neutral
verdict.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TenantCredentialContextDefault value for tenant-unaware code paths and single-tenant deployments. -
Constructor Summary
ConstructorsConstructorDescriptionTenantCredentialContext(TenantId tenantId) Creates an instance of aTenantCredentialContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static TenantCredentialContextConvenience factory.tenantId()Returns the value of thetenantIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SINGLE_TENANT_DEFAULT
Default value for tenant-unaware code paths and single-tenant deployments.
-
-
Constructor Details
-
TenantCredentialContext
Creates an instance of aTenantCredentialContextrecord class.- Parameters:
tenantId- the value for thetenantIdrecord component
-
-
Method Details
-
of
Convenience factory. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
tenantId
Returns the value of thetenantIdrecord component.- Returns:
- the value of the
tenantIdrecord component
-