Record Class MemberVerification
java.lang.Object
java.lang.Record
io.jenkins.plugins.changeinvestigator.slack.transport.MemberVerification
public record MemberVerification(boolean verified, String userId, String workspaceId, String authenticationDigest, String friendlyName, MemberVerification.Status status)
extends Record
Private verification metadata for an explicitly selected member; the ID remains authoritative.
The authentication digest is SHA-256 of the bot token, never the token itself.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMemberVerification(boolean verified, String userId, String workspaceId, String authenticationDigest, String friendlyName) MemberVerification(boolean verified, String userId, String workspaceId, String authenticationDigest, String friendlyName, MemberVerification.Status status) Creates an instance of aMemberVerificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthenticationDigestrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefriendlyNamerecord component.final inthashCode()Returns a hash code value for this object.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.booleanverified()Returns the value of theverifiedrecord component.Returns the value of theworkspaceIdrecord component.
-
Constructor Details
-
MemberVerification
-
MemberVerification
public MemberVerification(boolean verified, String userId, String workspaceId, String authenticationDigest, String friendlyName, MemberVerification.Status status) Creates an instance of aMemberVerificationrecord class.- Parameters:
verified- the value for theverifiedrecord componentuserId- the value for theuserIdrecord componentworkspaceId- the value for theworkspaceIdrecord componentauthenticationDigest- the value for theauthenticationDigestrecord componentfriendlyName- the value for thefriendlyNamerecord componentstatus- the value for thestatusrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
verified
public boolean verified()Returns the value of theverifiedrecord component.- Returns:
- the value of the
verifiedrecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
workspaceId
Returns the value of theworkspaceIdrecord component.- Returns:
- the value of the
workspaceIdrecord component
-
authenticationDigest
Returns the value of theauthenticationDigestrecord component.- Returns:
- the value of the
authenticationDigestrecord component
-
friendlyName
Returns the value of thefriendlyNamerecord component.- Returns:
- the value of the
friendlyNamerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-