Record Class GrantEntry
java.lang.Object
java.lang.Record
org.opensearch.secure_sm.policy.GrantEntry
-
Constructor Summary
ConstructorsConstructorDescriptionGrantEntry(String codeBase, List<PermissionEntry> permissionEntries) Creates an instance of aGrantEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncodeBase()Returns the value of thecodeBaserecord component.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 thepermissionEntriesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GrantEntry
Creates an instance of aGrantEntryrecord class.- Parameters:
codeBase- the value for thecodeBaserecord componentpermissionEntries- the value for thepermissionEntriesrecord component
-
-
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). -
codeBase
Returns the value of thecodeBaserecord component.- Returns:
- the value of the
codeBaserecord component
-
permissionEntries
Returns the value of thepermissionEntriesrecord component.- Returns:
- the value of the
permissionEntriesrecord component
-