Module cloud.piranha.core.api
Package cloud.piranha.core.api
Record Class WebXmlServletSecurityRoleRef
java.lang.Object
java.lang.Record
cloud.piranha.core.api.WebXmlServletSecurityRoleRef
- Record Components:
roleName
- The role name scoped to a specific servlet, and the role name used in theisUser/CallerInRole
methods.roleLink
- The "global" application role, as defined by adeclareRoles
or asecurity-role
A servlet security-role-ref inside of web.xml/web-fragment.xml.
- Author:
- Arjan Tijms
-
Constructor Summary
ConstructorDescriptionWebXmlServletSecurityRoleRef
(String roleName, String roleLink) Creates an instance of aWebXmlServletSecurityRoleRef
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.roleLink()
Returns the value of theroleLink
record component.roleName()
Returns the value of theroleName
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
roleName
Returns the value of theroleName
record component.- Returns:
- the value of the
roleName
record component
-
roleLink
Returns the value of theroleLink
record component.- Returns:
- the value of the
roleLink
record component
-