Record Class PermissionKey
java.lang.Object
java.lang.Record
com.chaosguide.iam.vertex.authz.PermissionKey
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionKey(String resource, String action) Creates an instance of aPermissionKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static PermissionKey从 authority 字符串反向解析权限 key;格式不合法时尽早失败,避免生成半截权限。resource()Returns the value of theresourcerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
PermissionKey
-
-
Method Details
-
toAuthority
-
parse
从 authority 字符串反向解析权限 key;格式不合法时尽早失败,避免生成半截权限。 -
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). -
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-