Record Class Permission.Context
java.lang.Object
java.lang.Record
zeroecho.pki.server.Permission.Context
- Record Components:
operatorJustification- optional bounded operator reason or ticketapprovalPresent- whether a valid approval is present- whether the scoped authority is activesafeAttributes- immutable non-sensitive condition attributes
- Enclosing class:
Permission
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theapprovalPresentrecord component.booleanReturns the value of theauthorityActiverecord component.static Permission.Contextempty()Creates an empty safe context.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoperatorJustificationrecord component.Returns the value of thesafeAttributesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Context
-
-
Method Details
-
empty
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
operatorJustification
Returns the value of theoperatorJustificationrecord component.- Returns:
- the value of the
operatorJustificationrecord component
-
approvalPresent
public boolean approvalPresent()Returns the value of theapprovalPresentrecord component.- Returns:
- the value of the
approvalPresentrecord component
-
authorityActive
public boolean authorityActive()Returns the value of theauthorityActiverecord component.- Returns:
- the value of the
authorityActiverecord component
-
safeAttributes
Returns the value of thesafeAttributesrecord component.- Returns:
- the value of the
safeAttributesrecord component
-