Record Class BreakGlassService.Record
java.lang.Object
java.lang.Record
zeroecho.pki.server.BreakGlassService.Record
- Record Components:
breakGlassId- stable emergency grant identityprincipalId- granteegrant- exact scoped permission grantreason- mandatory reasonissuerPrincipalId- independent issuer identityapprovalId- optional independent approval authoritycreatedAt- creation timeactivatedAt- activation timeexpiresAt- mandatory expirystate- lifecycle stateauditCommitment- stable safe commitment
- Enclosing class:
BreakGlassService
public static record BreakGlassService.Record(String breakGlassId, String principalId, Permission.Grant grant, String reason, String issuerPrincipalId, Optional<String> approvalId, Instant createdAt, Optional<Instant> activatedAt, Instant expiresAt, BreakGlassService.State state, String auditCommitment)
extends Record
Durable break-glass record.
-
Constructor Summary
ConstructorsConstructorDescriptionRecord(String breakGlassId, String principalId, Permission.Grant grant, String reason, String issuerPrincipalId, Optional<String> approvalId, Instant createdAt, Instant activatedAt, Instant expiresAt, BreakGlassService.State state, String auditCommitment) Creates an activated record for existing embedded callers.Record(String breakGlassId, String principalId, Permission.Grant grant, String reason, String issuerPrincipalId, Optional<String> approvalId, Instant createdAt, Optional<Instant> activatedAt, Instant expiresAt, BreakGlassService.State state, String auditCommitment) Validates the strict time-limited scoped record. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivatedAtrecord component.Returns the value of theapprovalIdrecord component.Returns the value of theauditCommitmentrecord component.Returns the value of thebreakGlassIdrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.grant()Returns the value of thegrantrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theissuerPrincipalIdrecord component.Returns the value of theprincipalIdrecord component.reason()Returns the value of thereasonrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Record
public Record(String breakGlassId, String principalId, Permission.Grant grant, String reason, String issuerPrincipalId, Optional<String> approvalId, Instant createdAt, Optional<Instant> activatedAt, Instant expiresAt, BreakGlassService.State state, String auditCommitment) Validates the strict time-limited scoped record. -
Record
public Record(String breakGlassId, String principalId, Permission.Grant grant, String reason, String issuerPrincipalId, Optional<String> approvalId, Instant createdAt, Instant activatedAt, Instant expiresAt, BreakGlassService.State state, String auditCommitment) Creates an activated record for existing embedded callers.- Parameters:
breakGlassId- stable emergency grant identifierprincipalId- grantee principalgrant- exact scoped allow grantreason- mandatory bounded emergency reasonissuerPrincipalId- independent issuer principalapprovalId- optional independent approval authoritycreatedAt- server-authoritative creation timeactivatedAt- server-authoritative activation timeexpiresAt- mandatory expiry no more than 24 hours after activationstate- lifecycle stateauditCommitment- safe immutable audit commitment
-
-
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). -
breakGlassId
Returns the value of thebreakGlassIdrecord component.- Returns:
- the value of the
breakGlassIdrecord component
-
principalId
Returns the value of theprincipalIdrecord component.- Returns:
- the value of the
principalIdrecord component
-
grant
-
reason
-
issuerPrincipalId
Returns the value of theissuerPrincipalIdrecord component.- Returns:
- the value of the
issuerPrincipalIdrecord component
-
approvalId
Returns the value of theapprovalIdrecord component.- Returns:
- the value of the
approvalIdrecord component
-
createdAt
-
activatedAt
Returns the value of theactivatedAtrecord component.- Returns:
- the value of the
activatedAtrecord component
-
expiresAt
-
state
-
auditCommitment
Returns the value of theauditCommitmentrecord component.- Returns:
- the value of the
auditCommitmentrecord component
-