Record Class AuthorizationEngine.Request
java.lang.Object
java.lang.Record
zeroecho.pki.server.AuthorizationEngine.Request
- Record Components:
realmId- active realm identityexposure- process authority-exposure policyprincipal- authenticated or public principalaction- requested actionresource- exact target referencerelationship- established object relationshipdataView- requested viewcontext- safe closed-condition contextgrants- enabled assignments and grants captured for this decisionbreakGlassGrantIds- grant identities originating from active break-glass records
- Enclosing class:
AuthorizationEngine
public static record AuthorizationEngine.Request(RealmId realmId, AuthorityExposurePolicy exposure, SecurityPrincipal principal, Permission.Action action, Permission.Resource resource, Permission.Relationship relationship, Permission.DataView dataView, Permission.Context context, List<Permission.Grant> grants, Set<String> breakGlassGrantIds)
extends Record
One complete authorization input.
-
Constructor Summary
ConstructorsConstructorDescriptionRequest(RealmId realmId, AuthorityExposurePolicy exposure, SecurityPrincipal principal, Permission.Action action, Permission.Resource resource, Permission.Relationship relationship, Permission.DataView dataView, Permission.Context context, List<Permission.Grant> grants, Set<String> breakGlassGrantIds) Validates and snapshots the authorization input. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of thebreakGlassGrantIdsrecord component.context()Returns the value of thecontextrecord component.dataView()Returns the value of thedataViewrecord component.final booleanIndicates whether some other object is "equal to" this one.exposure()Returns the value of theexposurerecord component.grants()Returns the value of thegrantsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theprincipalrecord component.realmId()Returns the value of therealmIdrecord component.Returns the value of therelationshiprecord component.resource()Returns the value of theresourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Request
public Request(RealmId realmId, AuthorityExposurePolicy exposure, SecurityPrincipal principal, Permission.Action action, Permission.Resource resource, Permission.Relationship relationship, Permission.DataView dataView, Permission.Context context, List<Permission.Grant> grants, Set<String> breakGlassGrantIds) Validates and snapshots the authorization input.
-
-
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). -
realmId
-
exposure
-
principal
-
action
-
resource
-
relationship
Returns the value of therelationshiprecord component.- Returns:
- the value of the
relationshiprecord component
-
dataView
-
context
-
grants
-
breakGlassGrantIds
Returns the value of thebreakGlassGrantIdsrecord component.- Returns:
- the value of the
breakGlassGrantIdsrecord component
-