Record Class IsolationSubject
java.lang.Object
java.lang.Record
org.j7m.middleware.api.isolation.IsolationSubject
- Record Components:
id- subject identifierapplicationIdentity- optional safe application identityprincipal- optional safe principal namemetadata- immutable safe metadata
public record IsolationSubject(IsolationSubjectId id, String applicationIdentity, String principal, Map<String,String> metadata)
extends Record
Safe description of an application, task, or principal being isolated.
The metadata map must contain only non-sensitive values. Implementations must redact sensitive keys again before exposing status or audit data. The record is immutable and thread-safe.
-
Constructor Summary
ConstructorsConstructorDescriptionIsolationSubject(IsolationSubjectId id, String applicationIdentity, String principal, Map<String, String> metadata) Creates a validated subject. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationIdentityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of theprincipalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IsolationSubject
-
-
Method Details
-
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). -
id
-
applicationIdentity
Returns the value of theapplicationIdentityrecord component.- Returns:
- the value of the
applicationIdentityrecord component
-
principal
-
metadata
-